This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/53198] [4.6/4.7 Regression] gcc wrongly emits "array subscript is above array bounds" for simple arrays


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]