1 class S; 2 3 template<class T> 4 int f(T, S); 5 6 class S { 7 template<class T> f(T t,S)8 friend int f(T t, S) { t; return 0; } 9 }; 10