aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alias-decl-pmf1.C
blob: d0ac27d893c066b401e78bd6d0696ef8ff2b99f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/67339
// { dg-do compile { target c++11 } }

template < typename T>
struct A
{
    void foo();
    template < typename S, typename W >
        using N = void (T::*)(S, W) const ;
};

template < typename T>
void A<T>::foo()
{
    typename A<T>::template N<int, int> fun = &T::out;
}