[LLVMbugs] [Bug 10315] [C++0x] "Call to deleted constructor" with move assignment operator

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 9 22:31:44 PDT 2011


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

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-07-10 00:31:43 CDT ---
This is correct behavior, although the diagnostic is quite lacking.

The C++0x draft says that in the presence of a user-declared move constructor
or move assignment operator, the implicit copy constructor and copy assignment
operator are defined as deleted. Clang only recently implemented this, and I
guess GCC 4.6.1 does not.

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