On Wed, 2 Feb 2022 at 18:35, Segher Boessenkool wrote: > > On Wed, Feb 02, 2022 at 10:12:44AM +0000, Jonathan Wakely wrote: > > On Tue, 1 Feb 2022 at 23:55, Martin Sebor via Gcc-help > > > There's plenty of literature out there that explains this, including > > > the GCC manual, so I'd expect most C/C++ programmers to understand > > > that. > > > > I disagree. So does the manual: > > > > -Warray-bounds > > -Warray-bounds=n > > This option is only active when -ftree-vrp is active > > (default for -O2 and above). It > > warns about subscripts to arrays that are always out of > > bounds. This warning is > > enabled by -Wall. > > Yes, that is wrong as written. Please open a PR? Done: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104355