[Bug tree-optimization/96091] ICE during dom: tree check: expected integer_cst, have poly_int_cst in to_wide, at tree.h:5911
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 7 07:30:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96091
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsandifo at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Why should we not have a VECTOR_CST of POLY_INT_CST elements? If POLY_INT_CST
is not "constant" then it shouldn't be tcc_constant? Looks like
tree
vector_cst_elt (const_tree t, unsigned int i)
{
...
/* Otherwise work out the value from the last two encoded elements. */
return wide_int_to_tree (TREE_TYPE (TREE_TYPE (t)),
vector_cst_int_elt (t, i));
}
should be using poly-ints and not wide-ints. Richard?
More information about the Gcc-bugs
mailing list