// { dg-do assemble } // Posted by Trevor Taylor template struct A { void X() #if __cplusplus <= 201402L throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif ; }; template inline void A::X() #if __cplusplus <= 201402L throw(T) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } #endif { }