https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84175
Bug ID: 84175 Summary: FAIL: c-c++-common/Warray-bounds-4.c -Wc++-compat strcpy (test for warnings, line 67) Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c: In function 'tes t_memcpy_bounds_memarray_range': /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c:47:3: warning: 'm emcpy' offset [6, 8] from the object at 'ma' is out of the bounds of referenced subobject 'a5' with type 'char[5]' at offset 0 [-Warray-bounds] /test/gnu/gcc/gcc/gcc/testsuite/c-c++-common/Warray-bounds-4.c:48:3: warning: 'm emcpy' offset [6, 10] from the object at 'ma' is out of the bounds of referenced subobject 'a5' with type 'char[5]' at offset 0 [-Warray-bounds] PASS: c-c++-common/Warray-bounds-4.c -Wc++-compat (test for warnings, line 47 ) PASS: c-c++-common/Warray-bounds-4.c -Wc++-compat (test for warnings, line 48 ) XFAIL: c-c++-common/Warray-bounds-4.c -Wc++-compat strcpy (test for warnings, line 66) FAIL: c-c++-common/Warray-bounds-4.c -Wc++-compat strcpy (test for warnings, line 67) PASS: c-c++-common/Warray-bounds-4.c -Wc++-compat (test for excess errors)