1template <class T> 2struct A 3{ 4 friend void bar(A<T> a) {} 5}; 6 7void bar(A<int>); 8 9int main() 10{ 11 A<int> a; 12 13 bar(a); 14} 15 16