From d6808f215e979a7a2899d89b204c47fce4e22273 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 17 Oct 2017 09:06:53 +0000 Subject: 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 450e482..1a692d3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2017-10-17 Paolo Carlini + PR c++/67831 + * g++.dg/cpp0x/constexpr-ice18.C: New. + +2017-10-17 Paolo Carlini + 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()}; -- cgit v1.1