https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118794
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > Try -fno-math-errno ? Or add: > [[assert(norm>=0)]]; > > or: > if (norm>=0) > __builtin_unreachable(); Sorry the if statement should have been: if (norm<0) __builtin_unreachable(); But you should get the idea.