re PR c++/78701 (ICE: unexpected expression N of kind template_parm_index)
authorNathan Sidwell <nathan@acm.org>
Wed, 14 Dec 2016 16:45:33 +0000 (16:45 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 14 Dec 2016 16:45:33 +0000 (16:45 +0000)
commitb4ba0852099ad28a533327ac25e8337910be28e8
tree33690cc2fdd2e6f27ab0b5200494c040f9c94c94
parentfa0c02c38c52a425c39084f364bb645becb8b7bb
re PR c++/78701 (ICE: unexpected expression N of kind template_parm_index)

PR c++/78701
* pt.c (type_unification_real): Check tsubst arg doesn't have
remaining template parms before converting it.

PR c++/78701
* g++.dg/cpp0x/pr78701.C: New.

From-SVN: r243657
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr78701.C [new file with mode: 0644]