https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114660
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- For the case in question when x is zero then y can be INT_MAX and thus y * y already overflow. But x * y * y * y * y * y could be associated as (x * y) * (y^4).