[Bug middle-end/78174] out of bounds array subscript in rtl.h NOTE_DATA macro
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 1 00:12:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78174
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #2)
> I realize
> that GCC sometimes treats even one element arrays (and even bigger if
> they're last) as zero-length even though that's not documented anywhere
> (AFAIK), but it would be nice to get away from that.
It was a decision not to document it as it was more of an extension which does
not need to be documented (maybe it should be documented in an internals GCC
documentation but it should not be documented in an external facing one as it
is not recommended one to do). Also the other reason why it needs to be work
still is that old code needs to work and we support many other code.
Do we really have a class structure here in GCC's code?
More information about the Gcc-bugs
mailing list