re PR c++/63241 (Internal error in gimplify_init_constructor when using constexr...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 17 Sep 2014 14:30:18 +0000 (14:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 17 Sep 2014 14:30:18 +0000 (14:30 +0000)
2014-09-17  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r215326

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

index 507022cdfea7654ee67b11d563ca0f9c82e4ea2a..8f417e95d8cb82012764118473ccea7f7ce2b772 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-17  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/63241
+       * g++.dg/cpp0x/constexpr-63241.C: New.
+
 2014-09-17  Janne Blomqvist  <jb@gcc.gnu.org>
 
        PR libfortran/62768
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C
new file mode 100644 (file)
index 0000000..2553cae
--- /dev/null
@@ -0,0 +1,13 @@
+// PR c++/63241
+// { dg-do compile { target c++11 } }
+
+struct A {
+  constexpr A(int){}
+};
+
+int main() {
+  int i = 1;
+  A array[2][2] =
+    {{{0}, {i}},
+     {{0}, {0}}};
+}