[Bug c/87192] -Warray-bounds (even =2) does not work on struct members
bugdal at aerifal dot cx
gcc-bugzilla@gcc.gnu.org
Sun Sep 2 22:26:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192
--- Comment #3 from Rich Felker <bugdal at aerifal dot cx> ---
Adding a second member int b; does not make it work. I'm not sure why the end
of the struct should be special anyway; is it for the sake of supporting code
with erroneous alternatives to flexible array members? Shouldn't "=2" disable
that exception?
More information about the Gcc-bugs
mailing list