This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53733] [C++11][DR 1402] Move constructor/assignment operator too often deleted
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jul 2012 00:05:53 +0000
- Subject: [Bug c++/53733] [C++11][DR 1402] Move constructor/assignment operator too often deleted
- Auto-submitted: auto-generated
- References: <bug-53733-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53733
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-10 00:05:53 UTC ---
Author: jason
Date: Tue Jul 10 00:05:50 2012
New Revision: 189398
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189398
Log:
DR 1402
PR c++/53733
* cp-tree.h (FNDECL_SUPPRESS_IMPLICIT_DECL): New.
(struct lang_decl_fn): Add suppress_implicit_decl field.
* method.c (implicitly_declare_fn): Check it.
(process_subob_fn): Add no_implicit_p parm.
(walk_field_subobs, synthesized_method_walk): Likewise.
(maybe_explain_implicit_delete): Adjust.
(explain_implicit_non_constexpr): Adjust.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/defaulted36.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/cp-tree.h
branches/gcc-4_7-branch/gcc/cp/method.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/defaulted21.C