namespace N { template static void f (); struct S { friend void N::f (); static void f (int); }; }