https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64111

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
I've posted a patch for trunk.  The following patch for the 4.8 branch fixes
the testcase:

Index: gcc/tree.c
===================================================================
--- gcc/tree.c  (revision 218016)
+++ gcc/tree.c  (working copy)
@@ -1130,7 +1130,7 @@ int_cst_hash_hash (const void *x)
   const_tree const t = (const_tree) x;

   return (TREE_INT_CST_HIGH (t) ^ TREE_INT_CST_LOW (t)
-         ^ htab_hash_pointer (TREE_TYPE (t)));
+         ^ TYPE_UID (TREE_TYPE (t)));
 }

 /* Return nonzero if the value represented by *X (an INTEGER_CST tree node)

Reply via email to