re PR c++/29087 (More than 35000 switch cases crash cc1plus)
authorSteven Bosscher <steven@gcc.gnu.org>
Mon, 18 Sep 2006 15:32:43 +0000 (15:32 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Mon, 18 Sep 2006 15:32:43 +0000 (15:32 +0000)
commitddd039d56c316594aaf517aaf3f88f5476f194e9
treeb078e073a156ddbebc4d47dac5106373b2fd6ee9
parentcbe5ba46e06140450d8cea2e2f61e394cdb14187
re PR c++/29087 (More than 35000 switch cases crash cc1plus)

        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.

From-SVN: r117026
gcc/cp/ChangeLog
gcc/cp/parser.c