Fixed by r277351, applying to trunk.
2019-10-25 Marek Polacek <[email protected]>
PR c++/91581 - ICE in exception-specification of defaulted ctor.
* g++.dg/cpp0x/noexcept55.C: New test.
diff --git gcc/testsuite/g++.dg/cpp0x/noexcept55.C
gcc/testsuite/g++.dg/cpp0x/noexcept55.C
new file mode 100644
index 00000000000..f46320db211
--- /dev/null
+++ 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;