https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104045
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I read that wrong. We have Max<inf, a>. I suspect the issue is gcc has -ftrapping-math turned on by default while clang does not. Does -fno-trapping-math fix the issue?