This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r120392 - in /branches/gcc-4_1-branch/gcc: cp/C...


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  <mark@codesourcery.com>
	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]