[Bug c/50624] detecting array overflows regressed
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 6 15:11:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-06 15:10:45 UTC ---
(In reply to comment #5)
> Easy case = constant expressions as index?
>
> Would the frontend be able to handle
>
> short array[1];
>
> i = 1;
> array[i]
Probably not.
It's also the usual trade-off between warnings for dead code or not.
More information about the Gcc-bugs
mailing list