From: Paolo Carlini Date: Fri, 29 Aug 2014 12:24:17 +0000 (+0000) Subject: re PR c++/59938 ([C++11] Bogus "... is not a constant expression") X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee5ff8845f48cce9b6686dc84a1ec81d04b24814;p=gcc.git re PR c++/59938 ([C++11] Bogus "... is not a constant expression") 2014-08-29 Paolo Carlini PR c++/59938 * g++.dg/cpp0x/constexpr-59938.C: New. From-SVN: r214724 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 14d25b8f916..b799e792199 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-29 Paolo Carlini + + PR c++/59938 + * g++.dg/cpp0x/constexpr-59938.C: New. + 2014-08-29 Paolo Carlini PR c++/61484 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-59938.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-59938.C new file mode 100644 index 00000000000..560071c69fd --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-59938.C @@ -0,0 +1,5 @@ +// PR c++/59938 +// { dg-do compile { target c++11 } } + +struct Data { const char* const& name; }; +constexpr Data d = { "" };