https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94339
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |needs-bisection Last reconfirmed| |2020-03-26 Version|unknown |10.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- An easy fix would be to use if (TREE_OVERFLOW_P (result)) clearly the code fails to check that result is INTEGER_CST. Probably latent and only an unrelated change changes the input to this function. Testcase?