https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101381
Bug ID: 101381 Summary: [12 regression] missing warning in g++.dg/warn/Warray-bounds-20.C after r12-2132 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:a110855667782dac7b674d3e328b253b3b3c919b, r12-2132 make -k check-gcc RUNTESTFLAGS="--target_board=unix'{-m32}' dg.exp=g++.dg/warn/Warray-bounds-20.C" FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++98 note (test for warnings, line 38) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++98 note (test for warnings, line 55) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++14 note (test for warnings, line 38) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++14 note (test for warnings, line 55) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++17 note (test for warnings, line 38) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++17 note (test for warnings, line 55) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++2a note (test for warnings, line 38) FAIL: g++.dg/warn/Warray-bounds-20.C -std=gnu++2a note (test for warnings, line 55) I saw this only for 32 bit BE on powerpc64. commit a110855667782dac7b674d3e328b253b3b3c919b Author: Martin Sebor <mse...@redhat.com> Date: Wed Jul 7 14:05:25 2021 -0600 Correct handling of variable offset minus constant in -Warray-bounds [PR100137]