aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-12-09 16:33:44 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-12-09 16:33:44 +0000
commit271e6f02a18b2d480c55b7bdee57bc4de7edc02a (patch)
tree47497fa5c9fd195f980d2e24398c007ac46ceca9 /gcc/cp/call.c
parentb3656137984c755671e79da32c66379c0a4d2425 (diff)
downloadgcc-271e6f02a18b2d480c55b7bdee57bc4de7edc02a.zip
gcc-271e6f02a18b2d480c55b7bdee57bc4de7edc02a.tar.gz
gcc-271e6f02a18b2d480c55b7bdee57bc4de7edc02a.tar.bz2
re PR c++/87 (member template assignment operator)
cp: PR g++/87 * cp-tree.h (DECL_COPY_CONSTRUCTOR_P): Use copy_fn_p. (copy_args_p): Rename to ... (copy_fn_p): ... here. (grok_special_member_properties): New function. (grok_op_properties): Lose VIRTUALP parameter. (copy_assignment_arg_p): Remove. * call.c (build_over_call): Use copy_fn_p. * decl.c (grokfndecl): Reformat. Adjust call to grok_op_properties. (copy_args_p): Rename to ... (copy_fn_p): ... here. Reject template functions. Check for pass by value. (grok_special_member_properties): Remember special functions. (grok_ctor_properties): Don't remember them here, just check. (grok_op_properties): Likewise. (start_method): Call grok_special_member_properties. * decl2.c (grokfield): Likewise. (copy_assignment_arg_p): Remove. (grok_function_init): Don't remember abstract assignment here. * pt.c (instantiate_class_template): Call grok_special_member_properties. (tsubst_decl): Adjust grok_op_properties call. testsuite: * g++.dg/other/copy1.C: New test. From-SVN: r47813
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 0a59b17..21049b8 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4280,7 +4280,7 @@ build_over_call (cand, args, flags)
}
}
else if (DECL_OVERLOADED_OPERATOR_P (fn) == NOP_EXPR
- && copy_args_p (fn)
+ && copy_fn_p (fn)
&& TYPE_HAS_TRIVIAL_ASSIGN_REF (DECL_CONTEXT (fn)))
{
tree to = stabilize_reference