1 struct A {}; 2 3 struct B : public A 4 { 5 static void foo (); 6 }; 7 8 template <typename T> struct C 9 { CC10 C() : f(B::foo) {} 11 void (*f)(); 12 }; 13 14 C<int> c; 15