From: Paolo Carlini Date: Tue, 17 Oct 2017 09:06:53 +0000 (+0000) Subject: re PR c++/67831 (Internal error on complicated constexpr initialization.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6808f215e979a7a2899d89b204c47fce4e22273;p=gcc.git 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 --- 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()};