[Bug tree-optimization/86889] s390x gcc build fails when configured with --disable-checking
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 10 17:45:01 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86889
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2018-08-09 00:00:00 |2020-6-10
Known to fail| |10.1.0, 11.0, 9.2.0
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Reconfirming with GCC 10 and 11. The output for the test case in comment #2
is:
pr86889.c: In function ‘d’:
pr86889.c:8:13: warning: array subscript -1 is below array bounds of ‘long
int[2]’ [-Warray-bounds]
8 | if (p->b[g])
| ~~~~^~~
pr86889.c:1:17: note: while referencing ‘b’
1 | struct a { long b[2]; };
| ^
More information about the Gcc-bugs
mailing list