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++/31745] [4.3 regression] ICE on invalid use of namespace



------- Comment #2 from simartin at gcc dot gnu dot org  2007-05-25 20:27 -------
Subject: Bug 31745

Author: simartin
Date: Fri May 25 20:26:36 2007
New Revision: 125070

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125070
Log:
2007-05-25  Simon Martin  <simartin@users.sourceforge.net>
            Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR c++/31745
        * parser.c (cp_parser_skip_to_closing_brace): Return true if the next
        token is a closing brace, false if there are no tokens left.
        (cp_parser_namespace_alias_definition): Only consume the next token if
        it is a closing brace.

        * parser.c (cp_parser_class_specifier): Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash34.C
    trunk/gcc/testsuite/g++.dg/parse/crash35.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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