This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65815] brace elision doesn't work in NSDMI


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 };
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]