This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78283] New: -Wc++1z-compat warning is sticky
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Nov 2016 20:42:35 +0000
- Subject: [Bug c++/78283] New: -Wc++1z-compat warning is sticky
- Auto-submitted: auto-generated
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.