re PR c++/42466 (Multiple instantiations of template constructor fail)
authorJason Merrill <jason@redhat.com>
Tue, 22 Dec 2009 23:16:46 +0000 (18:16 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Dec 2009 23:16:46 +0000 (18:16 -0500)
commit2865105751562a5546c12040c0a7ba0fd58e639f
treec5aa6199fafa07e3534d7c437a1dc0f16acc46e3
parent5666bb32d1861b6622a2f98b5e26fa7c8e3a310f
re PR c++/42466 (Multiple instantiations of template constructor fail)

PR c++/42466
* pt.c (reduce_template_parm_level): Check the type before
returning cached TEMPLATE_PARM_INDEX.

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