summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp58.C
blob: 78111c71016847c63153517b573994d16a5f33c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// { dg-do assemble  }
// GROUPS passed templates membertemplates
template<int N, class T>
struct B {
};

template<int N1, int N2, int N3>
struct D {
    struct E {
        template<int N4, class T>
        static void f(B<N4,T>)
        { }
    };
};

template<int N>
struct A {
    template<int N2, class T, int N3>
    static void f(B<N2,T>, B<N3,T> b)
    {
        typedef typename D<N2,N3,N>::E E;
	E::f(b);
    }
};

void foo()
{
    A<5>::f(B<5,float>(),B<3,float>());
}