struct S { template static void g(); }; template void f() { return S::template g(); } void g() { f(); }