https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95279
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you show the code inside systemd (and the patch to fix it)? Because const void *p = (uint8_t*)0x406310; size_t s = -1; r = (uint8_t*)p + s; That is well defined.