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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> We get (T*)0 - 1 + 1 which overflows twice.

GCC's ubsan doesn't diagnose this, but Clang's does.

Reply via email to