http://llvm.org/bugs/show_bug.cgi?id=13797

             Bug #: 13797
           Summary: std::__1::__function::__func::destroy invokes
                    destructor multiple times
           Product: libc++
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


First off - I would consider explicitly invoking a destructor very bad style.
Regardless - destroy may and is (when you do moving of function) called
multiple times - which (correctly) crashes for some compilers.
For now I patched the explicit destructor calls to __compressed_pair in destroy
and destroy_deallocate with a boolean guard.
The more correct solution IMO would be to implement a destroy in
__compressed_pair, too, which checks for multiple invokation.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to