[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 31 17:46:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-31 17:43 -------
Subject: Bug 21165

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2005-05-31 17:43:26

Modified files:
	gcc/cp         : ChangeLog init.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: init5.C 

Log message:
	cp:
	PR c++/21165
	* init.c (integral_constant_value): Check the type of the
	initializer, not the decl.
	testsuite:
	PR c++/21165
	* g++.dg/template/init5.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4766&r2=1.4767
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&r1=1.419&r2=1.420
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5566&r2=1.5567
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/init5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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



More information about the Gcc-bugs mailing list