pt.c (hash_tmpl_and_args): Use iterative_hash_object on template uid.
authorJason Merrill <jason@redhat.com>
Sat, 31 Oct 2015 16:19:44 +0000 (12:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 31 Oct 2015 16:19:44 +0000 (12:19 -0400)
* pt.c (hash_tmpl_and_args): Use iterative_hash_object on template
uid.

From-SVN: r229626

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

index 52ec43160f5c983ed2cfc602574f1e0668a3df7b..a995242621fd7eb2b9b3dc12d54c3f4850f8f9f4 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 438ec2df18dce813d574580f0c2558809e002d71..243464dbb88b893e2cfb9bb3c7e450d4a23fc893 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);
 }