|
From: Florian K. <fl...@ei...> - 2015-03-24 15:07:52
|
On 24.03.2015 15:35, Philippe Waroquiers wrote: > Did the warning appear specifically with this revision ? Yes. Backing out r15036 makes the warning disappear. > I tried on a recent platform (gcc 4.9.2, Fedora 21, s390) > after having added -Warray-bounds but no warning obtained. > > This looks however a false positive to me: > n_fixed is the nr of elements initialised in the array. > So, 0 .. n_fixed-1 can be used > And the condition to stop the loop is i+1 < n_fixed. > So, it looks to me that fixed[i+1] will be ok. > Yes. correct. Looks like a GCC bug. My default gcc is gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 which produces the warning. I built 4.9.2 and with that version the warning disappears. Florian |