[Bug c++/20148] [4.0 regression] Hosed error message with statement expression

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 23 13:36:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-23 05:31 -------
Subject: Bug 20148

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2005-02-23 05:30:51

Modified files:
	gcc/testsuite/g++.dg/template: qualttp15.C 
	gcc/testsuite/g++.old-deja/g++.other: struct1.C 
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog decl2.c error.c init.c parser.c 
	                 semantics.c 
Added files:
	gcc/testsuite/g++.dg/parse: constant7.C error27.C error26.C 
	gcc/testsuite/g++.dg/template: error17.C 

Log message:
	PR c++/19991
	* init.c (integral_constant_value): Iterate if the value of a decl
	is itself a constant.
	
	PR c++/20152
	* parser.c (cp_parser_class_head): Check for redefintions here.
	* semantics.c (begin_class_definition): Not here.
	
	PR c++/20153
	* decl2.c (build_anon_union_vars): Add type parameter.
	(finish_anon_union): Pass it.
	
	PR c++/20148
	* error.c (dump_expr): Do not print the body of a BIND_EXPR.
	Handle STATEMENT_LIST.
	
	PR c++/19991
	* g++.dg/parse/constant7.C: New test.
	
	PR c++/20152
	* g++.dg/parse/error27.C: New test.
	* g++.dg/template/qualttp15.C: Adjust error markers.
	* g++.old-deja/g++.other/struct1.C: Likewise.
	
	PR c++/20153
	* g++.dg/template/error17.C: New test.
	
	PR c++/20148
	* g++.dg/parser/error26.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/constant7.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error27.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/error26.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/error17.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/qualttp15.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.other/struct1.C.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5072&r2=1.5073
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4641&r2=1.4642
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl2.c.diff?cvsroot=gcc&r1=1.768&r2=1.769
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.276&r2=1.277
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&r1=1.410&r2=1.411
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.317&r2=1.318
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.462&r2=1.463



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20148



More information about the Gcc-bugs mailing list