FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp58.C
blob38c295388d01c293e660854382e2a268acd7b7df
1 // Build don't link:
2 // GROUPS passed templates membertemplates
3 template<int N, class T>
4 struct B {
5 };
7 template<int N1, int N2, int N3>
8 struct D {
9     struct E {
10         template<int N4, class T>
11         static void f(B<N4,T>)
12         { }
13     };
16 template<int N>
17 struct A {
18     template<int N2, class T, int N3>
19     static void f(B<N2,T>, B<N3,T> b)
20     {
21         typedef typename D<N2,N3,N>::E E;
22         E::f(b);
23     }
26 void foo()
28     A<5>::f(B<5,float>(),B<3,float>());