This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52588] false warning: array subscript is above array bounds: number of elements is 1
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Mar 2012 08:58:14 +0000
- Subject: [Bug tree-optimization/52588] false warning: array subscript is above array bounds: number of elements is 1
- Auto-submitted: auto-generated
- References: <bug-52588-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52588
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-15 08:58:14 UTC ---
I don't think there is a way for the compiler to see if idx_5 is within the
range of [0, 9]. So we are warning for the cases where idx_5 is out of the
range really.