https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92829
Bug ID: 92829 Summary: [10 regression] several test case failures starting with r278983 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Some of the new test cases in the revision do not test cleanly and one old test also now fails: FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 117) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 117) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 117) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 117) FAIL: gcc.dg/Warray-bounds-56.c (test for warnings, line 82) FAIL: gcc.dg/Wstringop-overflow-25.c (test for warnings, line 317) FAIL: gcc.dg/Wstringop-overflow-25.c (test for warnings, line 318) FAIL: gcc.dg/Wstringop-overflow-25.c (test for warnings, line 319) Details on one of the new failures: Executing on host: /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s (timeout = 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:32:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:36:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:40:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 4 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:41:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char_array(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:86:3: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:91:3: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:89:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:95:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:81:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:83:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_int16_t(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:111:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:122:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 7 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:123:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 32) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 36) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 40) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 41) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 81) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 83) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 86) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 89) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 91) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 95) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 111) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 117) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 122) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for warnings, line 123) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++98 (test for excess errors) Executing on host: /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++14 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s (timeout = 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++14 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:32:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:36:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:40:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 4 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:41:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char_array(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:86:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:89:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:91:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:95:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:81:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:83:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_int16_t(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:111:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:122:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 7 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:123:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 32) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 36) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 40) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 41) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 81) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 83) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 86) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 89) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 91) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 95) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 111) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 117) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 122) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for warnings, line 123) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++14 (test for excess errors) Executing on host: /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++17 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s (timeout = 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++17 -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:32:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:36:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:40:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 4 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:41:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char_array(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:86:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:89:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:91:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:95:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:81:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:83:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_int16_t(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:111:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:122:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 7 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:123:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 32) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 36) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 40) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 41) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 81) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 83) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 86) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 89) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 91) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 95) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 111) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 117) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 122) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for warnings, line 123) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++17 (test for excess errors) Executing on host: /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++2a -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s (timeout = 300) spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../xg++ -B/home/seurer/gcc/build/gcc-test/gcc/testsuite/g++8/../../ /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -nostdinc++ -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include/powerpc64-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test/powerpc64-unknown-linux-gnu/libstdc++-v3/include -I/home/seurer/gcc/gcc-test/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++2a -O2 -Wall -Wno-array-bounds -ftrack-macro-expansion=0 -S -o Wstringop-overflow-4.s /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:32:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:36:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:40:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 4 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:41:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 3 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_char_array(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:86:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:89:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:91:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 1 byte into a region of size 0 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:95:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:81:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 2 bytes into a region of size 1 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:83:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C: In function 'void test_strcpy_new_int16_t(size_t)': /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:111:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 3 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:122:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 7 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] /home/seurer/gcc/gcc-test/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C:123:3: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' writing 10 bytes into a region of size 6 overflows the destination [-Wstringop-overflow=] PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 32) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 36) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 40) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 41) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 81) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 83) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 86) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 89) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 91) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 95) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 111) FAIL: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 117) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 122) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for warnings, line 123) PASS: g++.dg/warn/Wstringop-overflow-4.C -std=gnu++2a (test for excess errors)