[Bug middle-end/93582] [10 Regression] -Warray-bounds gives error: array subscript 0 is outside array bounds of struct E[1]

ajax at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 4 21:28:00 GMT 2020


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

--- Comment #7 from Adam Jackson <ajax at redhat dot com> ---
(In reply to Marek Polacek from comment #6)

> Well, zero-length arrays are a GNU C extension, but pre-C99 you could use
> pixels[1] and post-C99 you can use pixels[].  Is non of that an option?

The code could be changed, sure. We hit this _only_ on s390x when rebuilding
libXt. If the code is invalid then why the inconsistency?


More information about the Gcc-bugs mailing list