https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86420
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org, | |jakub at gcc dot gnu.org --- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> --- I think it's intended for -ftrapping-math to cover this. Jakub's patch adding this folding functionality handles over/underflow cases, but looks like the situation in comment #0 is not handled: https://gcc.gnu.org/ml/gcc-patches/2018-04/msg01027.html