commit 82a9072ecc7393b141b6923abe22820c7d813498 Author: Jason Merrill Date: Fri Oct 30 14:55:57 2015 -0400 * pt.c (hash_tmpl_and_args): Use iterative_hash_object on template uid. diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 438ec2d..243464d 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1682,7 +1682,7 @@ spec_hasher::equal (spec_entry *e1, spec_entry *e2) static hashval_t hash_tmpl_and_args (tree tmpl, tree args) { - hashval_t val = DECL_UID (tmpl); + hashval_t val = iterative_hash_object (DECL_UID (tmpl), 0); return iterative_hash_template_arg (args, val); }