// { dg-do assemble } template struct S {}; template <> struct S { void f(); void g(); }; void S::f() {} template <> void S::g() {} // { dg-error "" } does not match any template declaration