aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C11
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 450e482..1a692d3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2017-10-17 Paolo Carlini <paolo.carlini@oracle.com>
+ PR c++/67831
+ * g++.dg/cpp0x/constexpr-ice18.C: New.
+
+2017-10-17 Paolo Carlini <paolo.carlini@oracle.com>
+
PR c++/82570
* g++.dg/cpp1z/constexpr-lambda18.C: New.
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C
new file mode 100644
index 0000000..0b5ff70
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C
@@ -0,0 +1,11 @@
+// PR c++/67831
+// { dg-do compile { target c++11 } }
+
+struct Task {
+ struct TaskStaticData {
+ constexpr TaskStaticData() {}
+ } const &tsd;
+ constexpr Task() : tsd(TaskStaticData()) {}
+};
+
+Task tasks{Task()};