[LLVMbugs] [Bug 6709] Clang instantiates destructor for function argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 25 23:57:22 PDT 2010


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

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Douglas Gregor <dgregor at apple.com> 2010-03-26 01:57:22 CDT ---
Well, it doesn't make sense that we need a destructor (since the caller will
handle the destruction), I don't see any justification for this behavior in the
C++ standard, and none of the other compilers do it, so... fixed in r99615.

-- 
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