From d6808f215e979a7a2899d89b204c47fce4e22273 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 17 Oct 2017 09:06:53 +0000 Subject: [PATCH] re PR c++/67831 (Internal error on complicated constexpr initialization.) 2017-10-17 Paolo Carlini PR c++/67831 * g++.dg/cpp0x/constexpr-ice18.C: New. From-SVN: r253807 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-ice18.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 450e48202fe..1a692d3859e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-17 Paolo Carlini + + PR c++/67831 + * g++.dg/cpp0x/constexpr-ice18.C: New. + 2017-10-17 Paolo Carlini PR c++/82570 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 00000000000..0b5ff701306 --- /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()}; -- 2.30.2