[Bug c++/11962] [3.3/3.4 regression] ICE in type_dependent_expression on omitted second operand to ?: in template argument expression

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 22 02:11: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=11962



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-22 02:08 -------
Subject: Bug 11962

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2003-10-22 02:08:47

Modified files:
	gcc/cp         : ChangeLog mangle.c typeck.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: cond2.C 

Log message:
	PR c++/11962
	* typeck.c (build_x_conditional_expr): Handle missing middle
	operands in templates.
	* mangle.c (write_expression): Issue errors about attempts to
	mangle a non-existant middle operator to the ?: operator.
	
	PR c++/11962
	* g++.dg/template/cond2.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3740&r2=1.3741
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/mangle.c.diff?cvsroot=gcc&r1=1.87&r2=1.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.508&r2=1.509
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3137&r2=1.3138
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/cond2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



More information about the Gcc-bugs mailing list