[LLVMbugs] [Bug 11309] move constructor does not suppress copy constructor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 4 07:46:13 PDT 2011


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

Sean Hunt <scshunt at csclub.uwaterloo.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |scshunt at csclub.uwaterloo.ca
         Resolution|                            |INVALID

--- Comment #1 from Sean Hunt <scshunt at csclub.uwaterloo.ca> 2011-11-04 09:46:13 CDT ---
This is a library bug, not a clang bug. The explicit move constructor does not
suppress generation of the implicit copy constructor, but instead causes it to
be deleted [class.copy]/7, which clang correctly diagnoses, albeit rather
obtusely.

You are quite correct that shared_ptr should have an explicit copy constructor;
this is a library bug, not a compiler bug.

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