* call.c (build_over_call): Don't make a copy here if build_call
will make one too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116342
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-08-22 Jason Merrill <jason@redhat.com>
+
+ PR c++/23372
+ * call.c (build_over_call): Don't make a copy here if build_call
+ will make one too.
+
2006-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/28450
2006-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/28450
tree type = TREE_VALUE (parm);
conv = convs[i];
tree type = TREE_VALUE (parm);
conv = convs[i];
+
+ /* Don't make a copy here if build_call is going to. */
+ if (conv->kind == ck_rvalue
+ && !TREE_ADDRESSABLE (complete_type (type)))
+ conv = conv->u.next;
+
val = convert_like_with_context
(conv, TREE_VALUE (arg), fn, i - is_method);
val = convert_like_with_context
(conv, TREE_VALUE (arg), fn, i - is_method);