https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 Bug 87403 depends on bug 91777, which changed state.
Bug 91777 Summary: No warning for iterator going out of scope https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91777 What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |WONTFIX