This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67342] Ill-formed move constructor ignored in favor of copy constructor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Aug 2015 19:28:22 +0000
- Subject: [Bug c++/67342] Ill-formed move constructor ignored in favor of copy constructor
- Auto-submitted: auto-generated
- References: <bug-67342-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67342
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The compiler is correct, see [class.copy]/11.
B(B&&) is defaulted, so is defined as deleted, and "A defaulted move
constructor that is defined as deleted is ignored by overload resolution"