This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/56103] New: Overwrite classes on destruction for debug


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]