http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43270
AJ <aj664 at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aj664 at hotmail dot com
--- Comment #19 from AJ <aj664 at hotmail dot com> 2011-03-26 16:00:53 UTC ---
not sure if this will help.
but i found this problem with -O2 optimzed code in GCC 4.5.1 (and 4.4.1)
example to show the kind of problem (not a literal testcase)
int a[8];
a[4] = 9;
issues an array-bounds warning, -Warray-bounds
seems to be confusing the array elements value with the array size.
if i have
a[4] = 7;
no error.
I hope that gives someone an idea about where to look for the problem.
(i haven't access to newer GCCs)