[Bug c++/46736] [c++0x] move constructor is not implicitly deleted when it should be
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 8 20:00:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46736
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-08 20:00:31 UTC ---
Author: jason
Date: Wed Dec 8 20:00:27 2010
New Revision: 167601
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167601
Log:
PR c++/46736
* decl.c (cp_finish_decl): Complain about an implicitly deleted
method defaulted outside the class.
* method.c (maybe_explain_implicit_delete): Don't check DECL_INITIAL.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/defaulted21.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list