https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172
Bug ID: 82172 Summary: Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete Product: gcc Version: 7.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: general+gcc at matley dot com.au Target Milestone: --- Created attachment 42150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42150&action=edit Minimal test case The following self-contained C++ results in an invalid free.