(build_ptrmemfunc): Use type_unknown_p.
(convert_for_assignment): Also do default_conversion on overloaded
functions. Hand them off to ocp_convert.
- * pt.c (convert_nontype_argument): Tell instantiate_type to complain.
- Do complain about overload resolution producing a non-public fn.
1998-10-26 Mark Mitchell <mark@markmitchell.com>
else
fns = expr;
- fn = instantiate_type (type_pointed_to, fns, 1);
+ fn = instantiate_type (type_pointed_to, fns, 0);
if (fn == error_mark_node)
return error_mark_node;
tree fns = expr;
tree fn;
- fn = instantiate_type (type_referred_to, fns, 1);
+ fn = instantiate_type (type_referred_to, fns, 0);
if (fn == error_mark_node)
return error_mark_node;
if (!TREE_PUBLIC (fn))
{
-#if 0
if (really_overloaded_fn (fns))
/* Don't issue an error here; we might get a different
function if the overloading had worked out
differently. */
return error_mark_node;
else
-#endif
goto bad_argument;
}
fns = TREE_OPERAND (expr, 0);
fn = instantiate_type (TREE_TYPE (TREE_TYPE (type)),
- fns, 1);
+ fns, 0);
if (fn == error_mark_node)
return error_mark_node;