[LLVMbugs] [Bug 7067] New: Destructor not invoked

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 6 01:12:26 PDT 2010


           Summary: Destructor not invoked
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=4839)
 --> (http://llvm.org/bugs/attachment.cgi?id=4839)
Example showing missing destructor

In the attached code, by observing the output we can see that 'X(int i, int j)'
is being invoked repeatedly on the same memory location, but '~X()' is never
being called. It is in g++, and should be.

This was reduced from a 'circualar_buffer' test case in boost.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list