]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-08-29 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2014 12:24:17 +0000 (12:24 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2014 12:24:17 +0000 (12:24 +0000)
PR c++/59938
* g++.dg/cpp0x/constexpr-59938.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214724 138bc75d-0d04-0410-961f-82ee72b054a4

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 = { "" };