[Bug c++/29087] [4.1 Regression] More than 35000 switch cases crash cc1plus

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 21 20:28:00 GMT 2006



------- Comment #10 from steven at gcc dot gnu dot org  2006-09-21 20:27 -------
Subject: Bug 29087

Author: steven
Date: Thu Sep 21 20:27:36 2006
New Revision: 117120

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117120
Log:
2006-09-21  Steven Bosscher  <steven@gcc.gnu.org>

        PR c++/29087
        Backport from mainline:
        * parser.c (cp_parser_labeled_statement): Return nothing.  Do
        not take in_statement_expr and in_compound as arguments.  Rename
        to cp_parser_label_for_labeled_statement.  Parse only the label,
        not the statement.
        (cp_parser_statement): Parse the statement of a labeled-statement
        from here, using tail recursion.

Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/parser.c


-- 


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



More information about the Gcc-bugs mailing list