3 // Copyright (C) 2004 Free Software Foundation
4 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6 // Nested class of class template as friend
8 template<class T> struct A
16 template <class U> class C {
18 template<class T> friend struct A<T>::B;
21 template<class T> struct A<T*>
29 template<> struct A<char>
37 template<class T> void A<T>::B::f()
43 template<class T> void A<T*>::B::f()