[Bug c++/54506] Defaulted move constructors and move assignment operators are erroneously defined as deleted

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 10 02:09:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54506

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 02:09:26 UTC ---
(In reply to comment #3)
> g++ v4.7.2 20120908 (prerelease) compiles the original example successfully,
> but it fails to compile the following code:

G++ is following the proposed resolution of DR 1402 here; A<int> does not have
a move constructor and it is not trivially copyable, so the B move constructor
is not implicitly declared.  This seems like a flaw in the 1402 drafting; the
template constructor should count.



More information about the Gcc-bugs mailing list