From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10530 invoked by alias); 15 Sep 2006 21:01:55 -0000 Received: (qmail 10446 invoked by uid 48); 15 Sep 2006 21:01:47 -0000 Date: Fri, 15 Sep 2006 21:01:00 -0000 Message-ID: <20060915210147.10445.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/29087] [4.1/4.2 Regression] More than 35000 switch cases crash cc1plus In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01493.txt.bz2 List-Id: ------- Comment #4 from steven at gcc dot gnu dot org 2006-09-15 21:01 ------- Created an attachment (id=12279) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12279&action=view) tentative patch This removes the recursion cycle "cp_parser_statement -> cp_parser_labeled_statement -> cp_parser_statement" but it does not at this moment solve the whole problem because recursion of the form "cp_parser_statement -> cp_parser_statement" still occurs. With a minor change, the two new calls in the patch to cp_parser_statement from itself could be replaced with "goto restart;" to hard-code the obvious tail recursion opportunity. I may try that later. For now, this patch is being tested (by Eric Christopher at Apple) and I hope we'll get good results with it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29087