https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83312
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic,
| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-12-07
CC| |msebor at gcc dot gnu.org
Component|middle-end |tree-optimization
Target Milestone|--- |8.0
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Only jump threading figures it out, VRP has issues with encoding the branches
in ranges (as usual).
GCC 7 has the same range info but for some reason doesn't warn. Possibly
array-at-struct-end handling improvements exposed this false positive.