aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-10-09 00:10:57 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-10-08 20:10:57 -0400
commit34016c8137bcaf5188f15ce6e9d9951c13a69118 (patch)
treef6d0957dbeb49e219b9dadd34047d2207d444193 /gcc/cp/call.c
parent85ee60379d3900cc3fe1a92f8c1b92b380ab8296 (diff)
downloadgcc-34016c8137bcaf5188f15ce6e9d9951c13a69118.zip
gcc-34016c8137bcaf5188f15ce6e9d9951c13a69118.tar.gz
gcc-34016c8137bcaf5188f15ce6e9d9951c13a69118.tar.bz2
pt.c (resolve_overloaded_unification): New fn.
* pt.c (resolve_overloaded_unification): New fn. (try_one_overload): Likewise. (unify): Don't fail on unknown type. (type_unification_real): Likewise. Use resolve_overloaded_unification to handle an overloaded argument. (template_args_equal): Split out... (comp_template_args): From here. (determine_specialization): Also allow a template with more parms than were explicitly specified. * cp-tree.h: Add template_args_equal. * call.c (resolve_args): Remove TEMPLATE_ID_EXPR code. From-SVN: r22951
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index f01aacb..f431885 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -2255,26 +2255,6 @@ resolve_args (args)
}
else if (TREE_CODE (TREE_VALUE (t)) == OFFSET_REF)
TREE_VALUE (t) = resolve_offset_ref (TREE_VALUE (t));
- else if (TREE_CODE (TREE_VALUE (t)) == TEMPLATE_ID_EXPR)
- {
- tree targs;
- tree r;
-
- r = determine_specialization (TREE_VALUE (t), NULL_TREE,
- &targs,
- /*need_member_template=*/0,
- /*complain=*/0);
-
- /* If we figured out what was being specialized, use it.
- Otherwise, the function being called may resolve the
- choice of specialization, so we don't issue any error
- messages here. */
- if (r)
- {
- r = instantiate_template (r, targs);
- TREE_VALUE (t) = r;
- }
- }
}
return args;
}