https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111063
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also I tested GCC 13.2.0 with -fsanitize=float-cast-overflow and GCC does produce an error message at runtime for the original testcase too. /opt/compiler-explorer/gcc-13.2.0/include/c++/13.2.0/format:1489:38: runtime error: -inf is outside the range of representable values of type 'int'