r148281 - in /branches/gcc-4_4-branch/gcc: cp/C...

jakub@gcc.gnu.org jakub@gcc.gnu.org
Mon Jun 8 16:31:00 GMT 2009


Author: jakub
Date: Mon Jun  8 16:31:07 2009
New Revision: 148281

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148281
Log:
	PR c++/40370
	PR c++/40372
	* parser.c (cp_parser_direct_declarator): Don't set TREE_SIDE_EFFECTS
	on error_mark_node.  Check for VLAs outside of function context
	before check whether to wrap bounds into a NOP_EXPR with
	TREE_SIDE_EFFECTS.

	* g++.dg/template/error41.C: New test.
	* g++.dg/template/error42.C: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/error41.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/error42.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/parser.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list