From 366d28eedfd27b69992f6cd3e522a3d0d6870fcb Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 17 Sep 2014 14:30:18 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C 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}}}; +} -- 2.30.2