https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81694
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Overflow cannot be checked after the fact. It needs to be checked before the overflow has happened. Just like a buffet overflow should not be checked after.