Test case: struct S { constexpr S() { } }; constexpr S s[][1] = { { S() } }; Bogus error: test.cc:7:1: error: array must be initialized with a brace-enclosed initializer Reproduced with gcc 4.6.3 on host (x86_64-linux-gnu) and gcc 4.8.0 from AOSP prebuilts (x86_64-linux-android).
Fails with gcc 4.9.0 from AOSP prebuilts (aarch64-linux-android).
The same error exists in 4.10.0 20140612 (experimental)
This works in current mainline, I'm adding the testcase and closing the bug.
Author: paolo Date: Fri Aug 29 08:41:16 2014 New Revision: 214718 URL: https://gcc.gnu.org/viewcvs?rev=214718&root=gcc&view=rev Log: 2014-08-29 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61484 * g++.dg/cpp0x/constexpr-61484.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-61484.C Modified: trunk/gcc/testsuite/ChangeLog
Done.