template struct A {}; template <> struct A { static int f() { return 0; } }; int main() { return A::f(); }