re PR c++/28743 (ICE with invalid specialization)
authorPaolo Carlini <pcarlini@suse.de>
Thu, 14 Feb 2008 12:34:42 +0000 (12:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 14 Feb 2008 12:34:42 +0000 (12:34 +0000)
commit4571259b7a5875586d1579334aa9b944b103216b
tree2f1072d8d319f8bddd80a01dbf037db9911b292a
parentb49326f1ca9f1e9ec206d431643cf1996008fdcf
re PR c++/28743 (ICE with invalid specialization)

/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.

From-SVN: r132316
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/nontype16.C
gcc/testsuite/g++.dg/template/nontype17.C [new file with mode: 0644]