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

--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> ---
Created attachment 47430
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47430&action=edit
reduced testcase

on x86_64:
cc1plus -quiet  -O2 t.cc -Wall --param max-inline-insns-auto=80

t.cc: In function 'void deps_add_default_target(mkdeps*, const char*)':
t.cc:47:24: warning: array subscript 2 is outside array bounds of 'const char
[2]' [-Warray-bounds]
   47 |  if (p[1] == '.' && p[2] == '.' && (((p[3]) == '/') || (((p[3]) ==
'\\') && (0))))        goto not_this_one;
      |                     ~~~^
t.cc:47:42: warning: array subscript 3 is outside array bounds of 'const char
[2]' [-Warray-bounds]
   47 |  if (p[1] == '.' && p[2] == '.' && (((p[3]) == '/') || (((p[3]) ==
'\\') && (0))))        goto not_this_one;
      |                                      ~~~~^~

Reply via email to