https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123100
--- Comment #2 from M Welinder <terra at gnome dot org> --- That just moves things one level down. Specifically to here: https://en.cppreference.com/w/cpp/io/basic_stringbuf/str.html "3) Creates a std::basic_string object as if by move constructing it from *this's underlying character sequence in buf. buf may need to be adjusted to contain the same content as in (1) at first. After that, sets buf to empty and calls init_buf_ptrs(), then returns the std::basic_string object." Note the "buf may need to be adjusted to contain the same content as in (1) at first."
