This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51738] C++11 initializer list does not work correctly with operator[]
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jan 2012 15:00:03 +0000
- Subject: [Bug c++/51738] C++11 initializer list does not work correctly with operator[]
- Auto-submitted: auto-generated
- References: <bug-51738-4@http.gcc.gnu.org/bugzilla/>
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.