This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65815] brace elision doesn't work in NSDMI
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Apr 2015 10:56:12 +0000
- Subject: [Bug c++/65815] brace elision doesn't work in NSDMI
- Auto-submitted: auto-generated
- References: <bug-65815-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65815
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|WAITING |NEW
Summary|std::array initialization |brace elision doesn't work
|with initializer list: a = |in NSDMI
|{x,y,z} incorrectly flagged |
|as syntax error |
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:
struct array {
int data [2];
};
struct X {
array a = { 1, 2 };
};