aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/noexcept55.C8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ddf575b..38ac851 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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>
diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept55.C b/gcc/testsuite/g++.dg/cpp0x/noexcept55.C
new file mode 100644
index 0000000..f46320d
--- /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;