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

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 18 15:33:00 GMT 2006



------- Comment #8 from steven at gcc dot gnu dot org  2006-09-18 15:32 -------
Subject: Bug 29087

Author: steven
Date: Mon Sep 18 15:32:43 2006
New Revision: 117026

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117026
Log:
        PR c++/29087
        * 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:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c


-- 


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



More information about the Gcc-bugs mailing list