https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 100366, which changed state.
Bug 100366 Summary: [12 Regression] spurious warning - std::vector::clear followed by std::vector::insert(vec.end(), ...) with -O2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100366 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED