2 /* { dg-do compile } */
6 template <class U> class B;
8 // Did not compile with gcc-2.95.2 (linux i686) :-(
9 template <class S> template <class U> friend class A<S>::B;
12 template <class S> template <class U> class A<S>::B {
16 A<double>::B<double> ab;