[Bug c++/10635] [3.3/3.4 regression] ICE (segfault) when dereferencing an incomplete type casted from a void pointer

cvs-commit@gcc.gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 12 17:24:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From cvs-commit@gcc.gnu.org  2003-06-12 17:24 -------
Subject: Bug 10635

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-06-12 17:24:07

Modified files:
	gcc/cp         : ChangeLog 
	gcc/testsuite  : ChangeLog 

Log message:
	PR c++/10635
	* typeck.c (build_c_cast): Check that the destination type is
	complete.
	
	PR c++/10635
	* g++.dg/expr/cast1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.145&r2=1.3076.2.146
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.184&r2=1.2261.2.185


------- Additional Comments From cvs-commit@gcc.gnu.org  2003-06-12 17:24 -------
Subject: Bug 10635

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	mmitchel@gcc.gnu.org	2003-06-12 17:24:07

Modified files:
	gcc/cp         : ChangeLog 
	gcc/testsuite  : ChangeLog 

Log message:
	PR c++/10635
	* typeck.c (build_c_cast): Check that the destination type is
	complete.
	
	PR c++/10635
	* g++.dg/expr/cast1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.145&r2=1.3076.2.146
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.184&r2=1.2261.2.185



More information about the Gcc-bugs mailing list