public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61484] New: [C++11] [constexpr] can't initialize constexpr multi-dimentional array of a literal type
@ 2014-06-12 11:32 vmarko at google dot com
  2014-06-12 13:45 ` [Bug c++/61484] " vmarko at google dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: vmarko at google dot com @ 2014-06-12 11:32 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-29  8:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 11:32 [Bug c++/61484] New: [C++11] [constexpr] can't initialize constexpr multi-dimentional array of a literal type vmarko at google dot com
2014-06-12 13:45 ` [Bug c++/61484] " vmarko at google dot com
2014-06-13 21:39 ` daniel.kruegler at googlemail dot com
2014-06-26 17:15 ` [Bug c++/61484] [C++11] " paolo.carlini at oracle dot com
2014-08-29  8:33 ` paolo.carlini at oracle dot com
2014-08-29  8:41 ` paolo at gcc dot gnu.org
2014-08-29  8:44 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).