Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.dg / lookup / koenig12.C
blobc1358993909fe55afe1572757bcf8c372f1f938f
1 // PR c++/41305
2 // We got into infinite recursion instantiating the B<U> series.
4 template <class T> struct A { };
5 template <class T, class U = A<T> > struct B;
6 template <class T> struct C { };
8 template <class T, class U> struct B: C<B<U> >
10   friend void f(B) { }
13 B<int> b;
15 int main()
17   f(b);