PR c++/91581 - ICE in exception-specification of defaulted ctor.

* g++.dg/cpp0x/noexcept55.C: New test.

From-SVN: r277462
This commit is contained in:
Marek Polacek 2019-10-25 19:11:58 +00:00 committed by Marek Polacek
parent 0a70fb8750
commit 9bdc2a8f06
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-10-25 Marek Polacek <polacek@redhat.com>
PR c++/91581 - ICE in exception-specification of defaulted ctor.
* g++.dg/cpp0x/noexcept55.C: New test.
2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
Tobias Burnus <tobias@codesourcery.com>

View File

@ -0,0 +1,8 @@
// PR c++/91581 - ICE in exception-specification of defaulted ctor.
// { dg-do compile { target c++11 } }
struct A {
A() noexcept(sizeof(A)) = default;
};
A a;