https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66191

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Both GCC and Clang provide ubsan (via -fsanitize=undefined) which will find
this error:

proba2.cpp:14:28: runtime error: negation of -2147483648 cannot be represented
in type 'int'; cast to an unsigned type to negate this value to itself

Reply via email to