re PR c++/61484 ([C++11] can't initialize constexpr multi-dimentional array of a...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 29 Aug 2014 08:41:16 +0000 (08:41 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 29 Aug 2014 08:41:16 +0000 (08:41 +0000)
2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r214718

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

index 8472e3c3742bf2ddaee150f634cefd73b8b95e0b..14d25b8f916856bd926a64b9f54904347705ec05 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-29  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/61484
+       * g++.dg/cpp0x/constexpr-61484.C: New.
+
 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/builtins-1.c: Add tests for vec_xl, vec_xst,
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-61484.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-61484.C
new file mode 100644 (file)
index 0000000..2232beb
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/61484
+// { dg-do compile { target c++11 } }
+
+struct S {
+  constexpr S() { }
+};
+
+constexpr S s[][1] = {
+    { S() }
+};