This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/56103] New: Overwrite classes on destruction for debug
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Jan 2013 10:44:53 +0000
- Subject: [Bug libstdc++/56103] New: Overwrite classes on destruction for debug
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56103
Bug #: 56103
Summary: Overwrite classes on destruction for debug
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: libstdc++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: glisse@gcc.gnu.org
CC: redi@gcc.gnu.org
See the discussion starting here for more details:
http://gcc.gnu.org/ml/libstdc++/2013-01/msg00064.html
Overwriting classes like string or vector with garbage when they are destructed
can help detect uses after destruction.
Note that there is a suggestion to handle it at the compiler level for all
classes, instead of manually for a few classes of the standard library.