[Bug c++/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete

general+gcc at matley dot com.au gcc-bugzilla@gcc.gnu.org
Mon Sep 11 06:49:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172

--- Comment #3 from Shane <general+gcc at matley dot com.au> ---
The problem disappears in the following cases:

- LTO is not enabled
- libstdc++ is statically linked
- If the C++11 ABI is used
- Lower optimisation level
- "Downgrade" to c++14 or c++11


More information about the Gcc-bugs mailing list