re PR c++/59938 ([C++11] Bogus "... is not a constant expression")
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 29 Aug 2014 12:24:17 +0000 (12:24 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 29 Aug 2014 12:24:17 +0000 (12:24 +0000)
2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59938
* g++.dg/cpp0x/constexpr-59938.C: New.

From-SVN: r214724

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-59938.C [new file with mode: 0644]

index 14d25b8f916856bd926a64b9f54904347705ec05..b799e7921992c2fa8716bf6964099f60401fdfe6 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/59938
+       * g++.dg/cpp0x/constexpr-59938.C: New.
+
 2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>
 
        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 (file)
index 0000000..560071c
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/59938
+// { dg-do compile { target c++11 } }
+
+struct Data { const char* const& name; };
+constexpr Data d = { "" };