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).

Reply via email to