https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67442
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |rguenth at gcc dot gnu.org Assignee|rguenth at gcc dot gnu.org |unassigned at gcc dot gnu.org --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Ok, so fold_convert_const_int_from_int makes sure to use a widest_int. So the fold code in question should do the same? But then I suppose overflow detection doesn't work anymore. Un-assigning for now, I'm going to be on vacation starting from tomorrow.