[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Jason Merrill  ---
Fixed.

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

--- Comment #5 from Jason Merrill  ---
Author: jason
Date: Sat Jun 17 02:33:28 2017
New Revision: 249327

URL: https://gcc.gnu.org/viewcvs?rev=249327=gcc=rev
Log:
PR c++/80614 - Wrong mangling for C++17 noexcept type

* mangle.c (write_type): Put the eh spec back on the function type.

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/noexcept-type16.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/mangle.c

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

--- Comment #4 from Jason Merrill  ---
Author: jason
Date: Sat Jun 17 02:28:06 2017
New Revision: 249321

URL: https://gcc.gnu.org/viewcvs?rev=249321=gcc=rev
Log:
PR c++/80614 - Wrong mangling for C++17 noexcept type

* mangle.c (write_type): Put the eh spec back on the function type.

Added:
trunk/gcc/testsuite/g++.dg/cpp1z/noexcept-type16.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/mangle.c

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-06-16 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-05-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

--- Comment #3 from Jonathan Wakely  ---
(In reply to Marek Polacek from comment #2)
> Bisection points to r241958 but that is nonsense, so I suspect r241944.

Yes that would have been my guess.

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-05-04 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek  ---
Bisection points to r241958 but that is nonsense, so I suspect r241944.

[Bug c++/80614] [7/8 Regression] Bad mangling for noexcept abominable function types

2017-05-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614

Richard Biener  changed:

   What|Removed |Added

   Keywords||ABI
   Priority|P3  |P2
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-05-04
   Target Milestone|--- |7.2
Summary|Bad mangling for noexcept   |[7/8 Regression] Bad
   |abominable function types   |mangling for noexcept
   ||abominable function types
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
Confirmed, needs -std=c++17, works with GCC 6, fails with GCC 7.

> g++-6 t.C -std=c++17
> g++-7 t.C -std=c++17
/tmp/cc9O32gK.s: Assembler messages:
/tmp/cc9O32gK.s:42: Error: symbol `_Z2fnIKFvvEEvv' is already defined
> c++filt _Z2fnIKFvvEEvv
void fn()

> g++-6 t.C -std=c++17 -c
> nm t.o
 W _Z2fnIKFvvEEvv
 T main

so that it works with GCC 6 might be because of another bug (the instantiation
is missing).