1 namespace N { 2 template <typename T> 3 static void f (); 4 5 struct S { 6 friend void N::f<int> (); 7 static void f (int); 8 }; 9 } 10