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
This commit is contained in:
parent
8adee3e6f0
commit
256149524a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue