https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109581
--- Comment #3 from Daniel Schürmann <daschuer at mixxx dot org> --- I can confirm that -fno-finite-math-only fixes the issue. Since this a new behavior in GCC 13 and it is also a hard to find issue, which took us many hours to dig it down, it would be nice tho have at least a warning something like: warning: comparison of infinity constant is always false. The issue is that this happens silently after a compiler update. It can cause real live issues, but is only recognized by a chance in a big code base. Is there a use case of explicit compare with HUGE_VAL/-HUGE_VAL and than disable it with -ffinite-math-only?