https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91242
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Must be related to hashing of the TYPE_UID, following patch fixes that: diff --git a/gcc/tree.c b/gcc/tree.c index 8cf75f22220..7a5d6ef4625 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1644,7 +1644,6 @@ poly_int_cst_hasher::hash (tree t) { inchash::hash hstate; - hstate.add_int (TYPE_UID (TREE_TYPE (t))); for (unsigned int i = 0; i < NUM_POLY_INT_COEFFS; ++i) hstate.add_wide_int (wi::to_wide (POLY_INT_CST_COEFF (t, i))); @@ -1673,7 +1672,6 @@ build_poly_int_cst (tree type, const poly_wide_int_ref &values) poly_wide_int c = poly_wide_int::from (values, prec, SIGNED); inchash::hash h; - h.add_int (TYPE_UID (type)); for (unsigned int i = 0; i < NUM_POLY_INT_COEFFS; ++i) h.add_wide_int (c.coeffs[i]); poly_int_cst_hasher::compare_type comp (type, &c);