3 // Copyright (C) 2003 Free Software Foundation
4 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
6 // Member function template of class template as friend
8 template <class T> struct A
10 template <class U> void f();
15 template <class T> template <class U> friend void A<T>::f();
18 template <class T> struct A<T*>
20 template <class U> void f();
23 template <> struct A<char>
25 template <class U> void f();
28 template <class T> template <class U> void A<T>::f()
34 template <class T> template <class U> void A<T*>::f()
40 template <class U> void A<char>::f()
46 template <> void A<char>::f<int>()