diff options
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 169dd917ed7..0274ca9fc4c 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -2533,7 +2533,11 @@ add_implicitly_declared_members (tree t, of the parameter to the assignment operator will be a const or non-const reference. */ if (!TYPE_HAS_ASSIGN_REF (t) && !TYPE_FOR_JAVA (t)) - TYPE_HAS_CONST_ASSIGN_REF (t) = !cant_have_const_assignment; + { + TYPE_HAS_ASSIGN_REF (t) = 1; + TYPE_HAS_CONST_ASSIGN_REF (t) = !cant_have_const_assignment; + CLASSTYPE_LAZY_ASSIGNMENT_OP (t) = 1; + } /* Now, hook all of the new functions on to TYPE_METHODS, and add them to the CLASSTYPE_METHOD_VEC. */ |