(fn_type_unification): If we're adding the return type, increase len.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38472
138bc75d-0d04-0410-961f-
82ee72b054a4
/* We've been given a return type to match, prepend it. */
parms = tree_cons (NULL_TREE, TREE_TYPE (fntype), parms);
args = tree_cons (NULL_TREE, return_type, args);
+ if (len >= 0)
+ ++len;
}
/* We allow incomplete unification without an error message here
tree targs;
int winner = 0;
- if (len == 0)
- return 0;
-
targs = get_bindings_order (pat1, DECL_TEMPLATE_RESULT (pat2), len);
if (targs)
--winner;