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/35446] [4.2/4.3/4.4 regression] ICE with invalid array initializer



------- Comment #4 from jsm28 at gcc dot gnu dot org  2009-02-17 13:00 -------
Subject: Bug 35446

Author: jsm28
Date: Tue Feb 17 13:00:40 2009
New Revision: 144227

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144227
Log:
        PR c/35446
        * c-parser.c (c_parser_braced_init): Call pop_init_level when
        skipping until next close brace.

testsuite:
        * gcc.dg/noncompile/init-5.c: New test.
        * gcc.dg/init-bad-4.c: Adjust expected errors.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/noncompile/init-5.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-parser.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/init-bad-4.c


-- 


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


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