diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2009-01-05 12:52:35 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-01-05 12:52:35 -0500 |
commit | 256149524afec00869c1a2af8f2ef8fe18d97a45 (patch) | |
tree | fe2f212638d5e79809e78466bdd41eec0a752311 /gcc | |
parent | 8adee3e6f0a1205bc2bd44cf96dcb4f5e5317016 (diff) | |
download | gcc-256149524afec00869c1a2af8f2ef8fe18d97a45.zip gcc-256149524afec00869c1a2af8f2ef8fe18d97a45.tar.gz gcc-256149524afec00869c1a2af8f2ef8fe18d97a45.tar.bz2 |
re PR c++/38701 (ICE with defaulted function)
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.
From-SVN: r143082
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/cp-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index ff43bc7..9c89d96 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) |