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++/51229] [C++0x] [4.7 Regression] Broken diagnostic: 'integer_cst' not supported by dump_dec


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-07 20:43:12 UTC ---
Author: jakub
Date: Wed Dec  7 20:43:06 2011
New Revision: 182088

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182088
Log:
    PR c++/51229
    * decl.c (reshape_init_class): Complain if d->cur->index is
    INTEGER_CST.
    * parser.c (cp_parser_initializer_list): If cp_parser_parse_definitely
    fails, clear designator.

    * g++.dg/ext/desig3.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/desig3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


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