https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28144
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Iff there's anything to fix it is not in fold_convert_const_int_from_real which does exactly what is documented. Instead a frontend has to emit (short)(int)floatvar if float-to-integer conversion has to happen via an intermediate promoted type.