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