https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 48001, which changed state.
Bug 48001 Summary: inconsistent warning within loop always taken and outside the loop https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48001 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME