http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
--- Comment #6 from Richard Guenther 2011-10-06
15:10:45 UTC ---
(In reply to comment #5)
> Easy case = constant expressions as index?
>
> Would the frontend be able to handle
>
> short array[1];
>
> i = 1;
> array[i]
Probably not.
It's also
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
--- Comment #5 from Andi Kleen 2011-10-06
14:49:19 UTC ---
Easy case = constant expressions as index?
Would the frontend be able to handle
short array[1];
i = 1;
array[i]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
Richard Guenther changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #4 from Richard
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
--- Comment #3 from Jakub Jelinek 2011-10-05
19:22:38 UTC ---
If I remember well this warning isn't very well designed and has many false
positives on the other side.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
--- Comment #2 from Andi Kleen 2011-10-05
18:56:24 UTC ---
Thanks.
It's not a pure regression. Even 4.5 misses some easy cases:
especially the local stack array case, which should be in theory really easy.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50624
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|