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