This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/59124] [5/6/7 Regression] Wrong warnings "array subscript is above array bounds"
- From: "szotsaki at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Aug 2016 14:15:12 +0000
- Subject: [Bug tree-optimization/59124] [5/6/7 Regression] Wrong warnings "array subscript is above array bounds"
- Auto-submitted: auto-generated
- References: <bug-59124-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124
--- Comment #43 from Szőts Ákos <szotsaki at gmail dot com> ---
Yes, I can agree with this reasoning. However, when you remove either the
"while" or the "if" statements, the warning disappears. I don't think they
should have any influence on the array_size.