public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vmarko at google dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61484] New: [C++11] [constexpr] can't initialize constexpr multi-dimentional array of a literal type Date: Thu, 12 Jun 2014 11:32:00 -0000 [thread overview] Message-ID: <bug-61484-4@http.gcc.gnu.org/bugzilla/> (raw) 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).
next reply other threads:[~2014-06-12 11:32 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-06-12 11:32 vmarko at google dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-61484-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).