This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81901] false-positive -Warray-bounds
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Aug 2017 09:38:44 +0000
- Subject: [Bug c++/81901] false-positive -Warray-bounds
- Auto-submitted: auto-generated
- References: <bug-81901-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81901
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-08-21
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
whoo, obfuscation. For i = 0x30 we run into case 0x00, i & 0x0f < 8 is true
but you still access a[0x30]? Do you want to access a[i & 0xf]?