summaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index d69d415cd60..d291c083421 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -1362,8 +1362,8 @@ lookup_fnfields_1 (tree type, tree name)
lazily_declare_fn (sfk_move_constructor, type);
}
else if (name == ansi_assopname(NOP_EXPR)
- && CLASSTYPE_LAZY_ASSIGNMENT_OP (type))
- lazily_declare_fn (sfk_assignment_operator, type);
+ && CLASSTYPE_LAZY_COPY_ASSIGN (type))
+ lazily_declare_fn (sfk_copy_assignment, type);
else if ((name == dtor_identifier
|| name == base_dtor_identifier
|| name == complete_dtor_identifier