// { dg-do compile { target c++11 } } // { dg-additional-options "-fno-exceptions" } // PR68475 we used to not check eh spec matching with -fno-exceptions, // but this could lead to ICEs. template struct traits; template struct X { void Foo () noexcept (traits ::foo ()); // { dg-message "previous declaration" } }; template void X::Foo () noexcept (traits ::bar ()) // { dg-error "different exception specifier" } { }