Commit 2dfa30b4 by Jason Merrill Committed by Jason Merrill

* call.c (build_over_call): Use argarray[0] for 'this' argument.

From-SVN: r165968
parent d70a5179
2010-10-26 Jason Merrill <jason@redhat.com>
* call.c (build_over_call): Use argarray[0] for 'this' argument.
* decl.c (finish_function): Don't look at function_depth.
2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
......
......@@ -5964,9 +5964,7 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
INIT_EXPR to collapse the temp into our target. Otherwise, if the
ctor is trivial, do a bitwise copy with a simple TARGET_EXPR for a
temp or an INIT_EXPR otherwise. */
fa = (cand->first_arg != NULL_TREE
? cand->first_arg
: VEC_index (tree, args, 0));
fa = argarray[0];
if (integer_zerop (fa))
{
if (TREE_CODE (arg) == TARGET_EXPR)
......@@ -6041,6 +6039,7 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
return val;
}
/* FIXME handle trivial default constructor and destructor, too. */
if (!already_used)
mark_used (fn);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment