From 9bdc2a8f06cef54650798fcb4c343e4415fd5992 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 25 Oct 2019 19:11:58 +0000 Subject: [PATCH] PR c++/91581 - ICE in exception-specification of defaulted ctor. * g++.dg/cpp0x/noexcept55.C: New test. From-SVN: r277462 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/noexcept55.C | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/noexcept55.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ddf575ba8c3..38ac851a4e6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-10-25 Marek Polacek + + PR c++/91581 - ICE in exception-specification of defaulted ctor. + * g++.dg/cpp0x/noexcept55.C: New test. + 2019-10-25 Cesar Philippidis Tobias Burnus diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept55.C b/gcc/testsuite/g++.dg/cpp0x/noexcept55.C new file mode 100644 index 00000000000..f46320db211 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/noexcept55.C @@ -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; -- 2.30.2