https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119222
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- Because you didn't compile with -fsanitize=float-cast-overflow If you use that option, then SANITIZE_FLOAT_CAST will be set. But that is about adding instrumentation to give runtime diagnostics. This bug is about compile-time warnings, which should be possible because the all values here are constants.