]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2014-09-17 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2014 14:30:18 +0000 (14:30 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2014 14:30:18 +0000 (14:30 +0000)
PR c++/63241
* g++.dg/cpp0x/constexpr-63241.C: New.

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

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}}};
+}