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

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.


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