call.c (convert_like_real): Remove pointless code.
authorPaolo Carlini <pcarlini@suse.de>
Mon, 4 Jun 2007 20:40:43 +0000 (20:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 4 Jun 2007 20:40:43 +0000 (20:40 +0000)
2007-06-04  Paolo Carlini  <pcarlini@suse.de>

* call.c (convert_like_real): Remove pointless code.

From-SVN: r125315

gcc/cp/ChangeLog
gcc/cp/call.c

index ec1492818c956906cc9bb027dd7c0ec14cb4e6bd..a3fc7746a0bd6a68182ffd160e61b848e20209b9 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-04  Paolo Carlini  <pcarlini@suse.de>
+
+       * call.c (convert_like_real): Remove pointless code.
+
 2007-05-31  Mark Mitchell  <mark@codesourcery.com>
 
        * decl.c (get_atexit_fn_ptr_type): New function.
index bf565fcb5eb235af4f3616647392566320e851e1..deae301882caf2afc19f98de3d696a24309c2840 100644 (file)
@@ -4358,22 +4358,7 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
       {
        struct z_candidate *cand = convs->cand;
        tree convfn = cand->fn;
-       tree args;
 
-       if (DECL_CONSTRUCTOR_P (convfn))
-         {
-           tree t = build_int_cst (build_pointer_type (DECL_CONTEXT (convfn)),
-                                   0);
-
-           args = build_tree_list (NULL_TREE, expr);
-           /* We should never try to call the abstract or base constructor
-              from here.  */
-           gcc_assert (!DECL_HAS_IN_CHARGE_PARM_P (convfn)
-                       && !DECL_HAS_VTT_PARM_P (convfn));
-           args = tree_cons (NULL_TREE, t, args);
-         }
-       else
-         args = build_this (expr);
        expr = build_over_call (cand, LOOKUP_NORMAL);
 
        /* If this is a constructor or a function returning an aggr type,