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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> Clang's ubsan diagnoses this, but ours doesn't:
> 
> u.cc:4:25: runtime error: value -1 is outside the range of representable
> values of type 'unsigned int'

We do diagnose it as well, but only with -fsanitize=float-cast-overflow, which
is intentionally not included in -fsanitize=undefined.

Reply via email to