This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Sep 2017 13:47:35 +0000
- Subject: [Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete
- Auto-submitted: auto-generated
- References: <bug-82172-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, LTO really does a local object from the storage:
$ g++ -flto ice.cc && readelf -s a.out --wide | grep rep_storage
77: 00000000006021a0 32 OBJECT LOCAL DEFAULT 26
_ZNSs4_Rep20_S_empty_rep_storageE
$ g++ ice.cc && readelf -s a.out --wide | grep rep_storage
25: 0000000000602180 32 OBJECT UNIQUE DEFAULT 26
_ZNSs4_Rep20_S_empty_rep_storageE
116: 0000000000602180 32 OBJECT UNIQUE DEFAULT 26
_ZNSs4_Rep20_S_empty_rep_storageE
I'll take a look.