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:
parent
0a70fb8750
commit
9bdc2a8f06
@ -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>
|
||||
|
||||
|
8
gcc/testsuite/g++.dg/cpp0x/noexcept55.C
Normal file
8
gcc/testsuite/g++.dg/cpp0x/noexcept55.C
Normal 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;
|
Loading…
Reference in New Issue
Block a user