https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90758
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |10.0, 8.2.0, 9.1.0 Keywords| |diagnostic Last reconfirmed| |2019-06-05 Component|c |tree-optimization CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 Summary|out of bounds warning with |[7 Regression] spurious |-O3 |-Warray-bounds with -O3 Known to fail| |4.8.1, 4.9.4, 5.5.0, 6.4.0, | |7.3.0 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- I can confirm the warning. I didn't spend enough time on it to say definitively that it's a false positive so I'm going to take your word for it. The warning was introduced in 4.8 via r192538 and fixed in 8.1 via r257184. The second commit is for PR 81360 which was an ICE, so that it suppressed the warning could be entirely incidental.