PR c++/78283
* mangle.c (start_mangling): Reset G.need_cxx1z_warning.
* g++.dg/cpp1z/noexcept-type13.C: New test.
From-SVN: r242026
+2016-11-09 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/78283
+ * mangle.c (start_mangling): Reset G.need_cxx1z_warning.
+
2016-11-09 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_simple_type_specifier): Allow placeholder
{
G.entity = entity;
G.need_abi_warning = false;
+ G.need_cxx1z_warning = false;
obstack_free (&name_obstack, name_base);
mangle_obstack = &name_obstack;
name_base = obstack_alloc (&name_obstack, 0);
+2016-11-09 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/78283
+ * g++.dg/cpp1z/noexcept-type13.C: New test.
+
2016-11-09 Toma Tabacu <toma.tabacu@imgtec.com>
* gcc.target/mips/mips.exp (mips-dg-options): Upgrade to MIPS IV if
--- /dev/null
+// PR c++/78283
+// { 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" }