re PR c++/56684 ([C++0x] ICE: unexpected expression 'T' of kind template_parm_index)
authorJason Merrill <jason@redhat.com>
Fri, 22 Mar 2013 20:24:17 +0000 (16:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 22 Mar 2013 20:24:17 +0000 (16:24 -0400)
commite0ef0af5357ea927baa6b65bed2ef4a3ad237cc5
tree496008590f829d78a4c6c76de8a8c615771fb720
parent23b7850d108033107eb0327d4440c43b1f53dbe1
re PR c++/56684 ([C++0x] ICE: unexpected expression 'T' of kind template_parm_index)

PR c++/56684
* pt.c (instantiation_dependent_r): Check DECL_INITIAL of VAR_DECL
and CONST_DECL.

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