[Bug c++/28743] [4.1/4.2/4.3 regression] ICE with invalid specialization
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 14 12:36:00 GMT 2008
------- Comment #8 from paolo at gcc dot gnu dot org 2008-02-14 12:35 -------
Subject: Bug 28743
Author: paolo
Date: Thu Feb 14 12:34:42 2008
New Revision: 132316
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132316
Log:
/cp
2008-02-14 Paolo Carlini <pcarlini@suse.de>
PR c++/28743
* pt.c (determine_specialization): In case of function templates,
when the type of DECL does not match FN there is no match.
/testsuite
2008-02-14 Paolo Carlini <pcarlini@suse.de>
PR c++/28743
* g++.dg/template/nontype17.C: New.
* g++.dg/template/nontype16.C: Add error.
Added:
trunk/gcc/testsuite/g++.dg/template/nontype17.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/nontype16.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28743
More information about the Gcc-bugs
mailing list