re PR c++/47904 (ICE with DECL_PARM_INDEX (this) in cp_tree_equal)
authorJason Merrill <jason@redhat.com>
Sun, 27 Feb 2011 08:13:28 +0000 (03:13 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 27 Feb 2011 08:13:28 +0000 (03:13 -0500)
commite7dc5734a82ce4794027871556dfdd4bf1be2c25
tree6bed5ed34eaae4d954a3959ec8c4f1d711e46720
parentacfd3fffee80262c74de0e4480b983d7bf7fbd8e
re PR c++/47904 (ICE with DECL_PARM_INDEX (this) in cp_tree_equal)

PR c++/47904
* tree.c (cp_tree_equal): Compare DECL_PARM_LEVEL.
* pt.c (iterative_hash_template_arg): And hash it.

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