https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24882 Bug 24882 depends on bug 54392, which changed state.
Bug 54392 Summary: [4.8/4.9/5 Regression] std::string::assign() fails to update length https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54392 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED