// PR c++/37719.C template class foo { void bar() throw(int); // { dg-error "throw \\(int\\)" } }; template <> void foo::bar() throw(float) {} // { dg-error "throw \\(float\\)" }