This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61484] New: [C++11] [constexpr] can't initialize constexpr multi-dimentional array of a literal type
- From: "vmarko at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jun 2014 11:32:11 +0000
- Subject: [Bug c++/61484] New: [C++11] [constexpr] can't initialize constexpr multi-dimentional array of a literal type
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61484
Bug ID: 61484
Summary: [C++11] [constexpr] can't initialize constexpr
multi-dimentional array of a literal type
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vmarko at google dot com
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).