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: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Oct 2012 22:33:15 +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
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.8.0
--- Comment #4 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-23 22:33:15 UTC ---
(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