1 struct A { 2 static void g(int); 3 }; 4 5 struct S { 6 static int i; 7 8 friend void f(int = i); 9 friend void A::g(int = i); 10 }; 11