From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5803 invoked by alias); 3 Jan 2007 08:14:21 -0000 Received: (qmail 5737 invoked by alias); 3 Jan 2007 08:14:05 -0000 Date: Wed, 03 Jan 2007 08:14:00 -0000 Message-ID: <20070103081405.5736.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/29535] [4.1 Regression] ICE in instantiate_class_template, at cp/pt.c:5728 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00120.txt.bz2 ------- Comment #11 from jakub at gcc dot gnu dot org 2007-01-03 08:14 ------- Subject: Bug 29535 Author: jakub Date: Wed Jan 3 08:13:50 2007 New Revision: 120392 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120392 Log: PR c++/29535 Backported from mainline 2006-10-17 Mark Mitchell PR c++/28261 * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New function. (cp_parser_constructor_declarator_p): Use it. (cp_parser_check_type_definition): Return a value indicating whether or not the definition is valid. (cp_parser_enum_specifier): Skip invalid enum definitions. PR c++/28261 * g++.dg/parse/enum3.C: New test. PR c++/29535 * g++.dg/template/crash66.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/enum3.C branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash66.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/parser.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29535