https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80147
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Or even on common architectures... Consider the following code: For that example you need -ftrapping-math (which may or may not be enabled by default soon).