From: Paolo Carlini Date: Wed, 17 Sep 2014 14:30:18 +0000 (+0000) Subject: re PR c++/63241 (Internal error in gimplify_init_constructor when using constexr... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=366d28eedfd27b69992f6cd3e522a3d0d6870fcb;p=gcc.git re PR c++/63241 (Internal error in gimplify_init_constructor when using constexr and multidimensional arrays) 2014-09-17 Paolo Carlini PR c++/63241 * g++.dg/cpp0x/constexpr-63241.C: New. From-SVN: r215326 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 507022cdfea..8f417e95d8c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-17 Paolo Carlini + + PR c++/63241 + * g++.dg/cpp0x/constexpr-63241.C: New. + 2014-09-17 Janne Blomqvist 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 index 00000000000..2553cae349c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C @@ -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}}}; +}