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++/51738] C++11 initializer list does not work correctly with operator[]


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51738

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-03 15:00:03 UTC ---
(In reply to comment #1)
> Uhm, is it simply that cp_parser_postfix_open_square_expression doesn't handle:
> 
>   postfix-expression [ braced-init-list ]
> 
> or I'm misreading the C++11 grammar vs our parser?

Yep, that's the problem.


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