https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119132
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- `&p->array[3];` is well defined in C/C++. Having fsanitizer=bounds erroring out for it will break 99% C++ code and a few C code. That is because you could have a loop which does: ``` int *start = &p->array[0]; const int *end = &p->array[size]; for (; start != end; start++) { g(*start); } ``` And that is well defined C code; and it is how most C++ code iterators are done.