https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102969
Bug ID: 102969 Summary: [12 regression] g++.dg/warn/Wstringop-overflow-4.C fails after r12-4726 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:9a27acc30a34b7854db32eac562306cebac6fa1e, r12-4726 make -k check-gcc RUNTESTFLAGS="dg.exp=g++.dg/warn/Wstringop-overflow-4.C" FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for excess errors) # of expected passes 59 # of unexpected failures 1 spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../xg++ -B/home/seurer/gcc/git/build/gcc-test/gcc/testsuite/g++/../../ exceptions_enabled844733.cc -fdiagnostics-plain-output -nostdinc++ -I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include/powerpc64le-unknown-linux-gnu -I/home/seurer/gcc/git/build/gcc-test/powerpc64le-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/git/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -S -o exceptions_enabled844733.s FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for excess errors) Excess errors: /home/seurer/gcc/git/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:164:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] commit 9a27acc30a34b7854db32eac562306cebac6fa1e (HEAD, refs/bisect/bad) Author: Martin Sebor <mse...@redhat.com> Date: Tue Oct 26 14:38:11 2021 -0600 Make full use of context-sensitive ranges in access warnings.