This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/78435] New: bogus array subscript warning
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 20 Nov 2016 15:33:54 +0000
- Subject: [Bug middle-end/78435] New: bogus array subscript warning
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78435
Bug ID: 78435
Summary: bogus array subscript warning
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: bernd.edlinger at hotmail dot de
Target Milestone: ---
Created attachment 40090
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40090&action=edit
reproducer
just another example:
gcc -c -Wall -O2 -c xpath.c
xpath.c:79:6: warning: array subscript is above array bounds [-Warray-bounds]
work[buffersize - 1] = 0;
~~~~^~~~~~~~~~~~~~~~