know the type of the expression. Otherwise, we must wait
until overload resolution has been performed. */
functions = BASELINK_FUNCTIONS (member);
+ if (TREE_CODE (functions) == OVERLOAD && OVL_SINGLE_P (functions))
+ functions = OVL_FIRST (functions);
if (TREE_CODE (functions) == FUNCTION_DECL
&& DECL_STATIC_FUNCTION_P (functions))
type = TREE_TYPE (functions);
{
tree fn = BASELINK_FUNCTIONS (TREE_OPERAND (arg, 1));
+ if (TREE_CODE (fn) == OVERLOAD && OVL_SINGLE_P (fn))
+ fn = OVL_FIRST (fn);
+
/* We can only get here with a single static member
function. */
gcc_assert (TREE_CODE (fn) == FUNCTION_DECL