struct S { template int f(T), g(T); // ERROR - more than one declarator }; template void x(T), y(T); // ERROR - more than one declarator template struct S2 { static int i, j; // OK. }; template int S2::i, S2::j; // ERROR - more than one declarator template <> int S2::i, S2::i; // ERROR - more than one declarator