https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78283
Bug ID: 78283 Summary: -Wc++1z-compat warning is sticky Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- // { dg-do compile } // { dg-options "-Wall" } void foo () throw () {} // { dg-bogus "mangled name" } template <class T> T bar (T x) { return x; } // { dg-warning "mangled name" "" { target c++14_down } } void baz () { // { dg-bogus "mangled name" } return (bar (foo)) (); } void decl () {} // { dg-bogus "mangled name" } fails, because we never reset G.need_cxx1z_warning.