[Bug c++/55924] [C++11] Not all copy-assignment operator forms are correctly detected
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 9 18:40:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55924
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-01-09
Ever Confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-01-09 18:39:46 UTC ---
Clang thinks you need to add
mine() = default;
mine(const mine&) = default;
for the code to be accepted and I agree, otherwise the operator=(mine)
assignment operator calls the copy constructor which is deleted because of a
user-declared move assignment operator.
More information about the Gcc-bugs
mailing list