https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91448

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
I also see the following fails:

FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++98  (test for warnings, line 25)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++98 (test for excess errors)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++14  (test for warnings, line 25)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++14 (test for excess errors)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++17  (test for warnings, line 25)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++17 (test for excess errors)

spawn /test/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++
-B/test/gnu/gcc/objdir/g
cc/testsuite/g++/../../
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C
-fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers
-fdiagnostics-color=never -nostdinc++
-I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11
-I/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu++98
-O2 -Warray-bounds -S -o Warray-bounds-4.s
In constructor 'FixedString<size>::FixedString() [with long unsigned int size =
0]',
    inlined from 'int main()' at
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C:32:24:
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C:25:19: warning:
writing 1 byte into a region of size 0 [-Wstringop-overflow=]
output is:
In constructor 'FixedString<size>::FixedString() [with long unsigned int size =
0]',
    inlined from 'int main()' at
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C:32:24:
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C:25:19: warning:
writing 1 byte into a region of size 0 [-Wstringop-overflow=]

FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++98  (test for warnings, line 25)
FAIL: g++.dg/warn/Warray-bounds-4.C  -std=gnu++98 (test for excess errors)
Excess errors:
/test/gnu/gcc/gcc/gcc/testsuite/g++.dg/warn/Warray-bounds-4.C:25:19: warning:
writing 1 byte into a region of size 0 [-Wstringop-overflow=]

It looks like these fails may be related to fails on darwin:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91006

Reply via email to