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: unassig...@gcc.gnu.org

        ReportedBy: gli...@gcc.gnu.org

                CC: r...@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.

Reply via email to