* pt.c (hash_tmpl_and_args): Use iterative_hash_object on template
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Oct 2015 16:19:44 +0000 (16:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Oct 2015 16:19:44 +0000 (16:19 +0000)
uid.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229626 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/pt.c

index 52ec431..a995242 100644 (file)
@@ -1,5 +1,8 @@
 2015-10-31  Jason Merrill  <jason@redhat.com>
 
+       * pt.c (hash_tmpl_and_args): Use iterative_hash_object on template
+       uid.
+
        * parser.c (synthesize_implicit_template_parm)
        (finish_fully_implicit_template): Make static.
 
index 438ec2d..243464d 100644 (file)
@@ -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);
 }