[Bug c++/82172] New: 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:39:00 GMT 2017


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.


More information about the Gcc-bugs mailing list