This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53198] [4.6/4.7 Regression] gcc wrongly emits "array subscript is above array bounds" for simple arrays
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Dec 2012 15:16:16 +0000
- Subject: [Bug tree-optimization/53198] [4.6/4.7 Regression] gcc wrongly emits "array subscript is above array bounds" for simple arrays
- Auto-submitted: auto-generated
- References: <bug-53198-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53198
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.8.0
Known to fail|4.7.0, 4.8.0 |4.7.2
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-18 15:16:16 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 27801 [details]
> > another testcase - from xorg mouse driver
>
> This warns with GCC 4.8 r192379:
>
> pr53198.c: In function âCheckProtocolâ:
> pr53198.c:35:30: warning: array subscript is above array bounds
> [-Warray-bounds]
> for (i = 0; internalNames[i]; i++)
> ^
>
> It doesn't warn with gcc 4.5.1
Doesn't warn any longer on trunk.