https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83880
Bug ID: 83880 Summary: FAIL: c-c++-common/Warray-bounds-4.c -std=gnu++98 (test for warnings, line 67) Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu Executing on host: /home/dave/gnu/gcc/objdir/gcc/testsuite/g++1/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++1/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98 -O2 -Warray-bounds=2 -Wno-stringop-overflow -ftrack-macro-expansion=0 -S -o Warray-bounds-4.s (timeout = 300) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++1/../../xg++ -B/home/dave/gnu/gcc/objdir/gcc/testsuite/g++1/../../ /home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98 -O2 -Warray-bounds=2 -Wno-stringop-overflow -ftrack-macro-expansion=0 -S -o Warray-bounds-4.s /home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c: In function 'void test_memcpy_bounds_memarray_range()': /home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c:47:3: warning: 'void* memcpy(void*, const void*, size_t)' offset [6, 8] from the object at 'ma' is out of the bounds of referenced subobject 'MA::a5' with type 'char [5]' at offset 0 [-Warray-bounds] /home/dave/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c:48:3: warning: 'void* memcpy(void*, const void*, size_t)' offset [6, 10] from the object at 'ma' is out of the bounds of referenced subobject 'MA::a5' with type 'char [5]' at offset 0 [-Warray-bounds] PASS: c-c++-common/Warray-bounds-4.c -std=gnu++98 (test for warnings, line 47) PASS: c-c++-common/Warray-bounds-4.c -std=gnu++98 (test for warnings, line 48) XFAIL: c-c++-common/Warray-bounds-4.c -std=gnu++98 strcpy (test for warnings, line 66) FAIL: c-c++-common/Warray-bounds-4.c -std=gnu++98 (test for warnings, line 67) PASS: c-c++-common/Warray-bounds-4.c -std=gnu++98 (test for excess errors)