From: Paolo Carlini Date: Fri, 29 Aug 2014 08:41:16 +0000 (+0000) Subject: re PR c++/61484 ([C++11] can't initialize constexpr multi-dimentional array of a... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4506f7bd8ddad250d7b7aa917b7c30a8908d594;p=gcc.git re PR c++/61484 ([C++11] can't initialize constexpr multi-dimentional array of a literal type) 2014-08-29 Paolo Carlini PR c++/61484 * g++.dg/cpp0x/constexpr-61484.C: New. From-SVN: r214718 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8472e3c3742..14d25b8f916 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-29 Paolo Carlini + + PR c++/61484 + * g++.dg/cpp0x/constexpr-61484.C: New. + 2014-08-28 Bill Schmidt * 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 index 00000000000..2232beb1058 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-61484.C @@ -0,0 +1,10 @@ +// PR c++/61484 +// { dg-do compile { target c++11 } } + +struct S { + constexpr S() { } +}; + +constexpr S s[][1] = { + { S() } +};