https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118720
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Daniel Green from comment #4) > > Huh, annoying that `-fsanitize=undefined` doesn't pick up on it. It is hard to pick up as it requires inlining . I will file a bug requesting an enhancement but it will requires fat pointers with both lower and upper bounds added too.