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 #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-01-03 20:25:25 UTC ---
Author: paolo
Date: Tue Jan  3 20:25:16 2012
New Revision: 182856

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182856
Log:
/gcc/cp
2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51738
    * parser.c (cp_parser_postfix_open_square_expression): Handle
    postfix-expression [ braced-init-list ].

/gcc/testsuite
2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51738
    * g++.dg/cpp0x/initlist-postfix-open-square.C: New.

/libstdc++-v3
2012-01-03  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/51738
    * testsuite/23_containers/map/element_access/39901.cc: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist-postfix-open-square.C
    trunk/libstdc++-v3/testsuite/23_containers/map/element_access/39901.cc
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libstdc++-v3/ChangeLog


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