summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-05 17:52:35 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-05 17:52:35 +0000
commitb54819e08e709fa7ba575b45b0efcf37a839b896 (patch)
treefe2f212638d5e79809e78466bdd41eec0a752311
parent958802d21cc3e5b325e0c3179f4645e7297f0250 (diff)
downloadppe42-gcc-b54819e08e709fa7ba575b45b0efcf37a839b896.tar.gz
ppe42-gcc-b54819e08e709fa7ba575b45b0efcf37a839b896.zip
PR c++/38701
* decl.c (cp_finish_decl): Clear DECL_INITIAL for invalid defaulting. PR c++/38702 * class.c (defaultable_fn_p): Only operator== can be a copy assignment operator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143082 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/cp-tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index ff43bc70d74..9c89d9617a0 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1878,7 +1878,7 @@ struct lang_decl GTY(())
(IDENTIFIER_OPNAME_P (DECL_NAME (NODE)) \
? DECL_LANG_SPECIFIC (NODE)->u.f.operator_code : ERROR_MARK)
-/* Nonzero if NODE is an assignment operator. */
+/* Nonzero if NODE is an assignment operator (including += and such). */
#define DECL_ASSIGNMENT_OPERATOR_P(NODE) \
(DECL_LANG_SPECIFIC (NODE)->decl_flags.assignment_operator_p)
OpenPOWER on IntegriCloud