This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80614] New: Bad mangling for noexcept abominable function types
- From: "alisdairm at me dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 May 2017 19:07:58 +0000
- Subject: [Bug c++/80614] New: Bad mangling for noexcept abominable function types
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80614
Bug ID: 80614
Summary: Bad mangling for noexcept abominable function types
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: alisdairm at me dot com
Target Milestone: ---
The following simple program complains about duplicate definitions for two
different template instantiations:
template <typename T> void fn() {}
int main() {
fn<void() const>();
fn<void() const noexcept>();
}
>From extensive testing (I'm validating a type traits library) it seems specific
to "abominable" function types differing only in the noexcept specification, so
is a C++17 specific failure.