[Bug tree-optimization/94675] [9 regression] -Warray-bounds false positive with -O2

chantry.xavier at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Apr 21 06:51:26 GMT 2020


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

--- Comment #2 from Xavier <chantry.xavier at gmail dot com> ---
Note that in our code, we are not even dereferencing the pointer, it's just
ps->s += len.

And since we always keep a pointer right after the array (p_end / s_end), won't
that be a source of problems for Warray-bounds ?


More information about the Gcc-bugs mailing list