else if (TREE_CODE (member) == SCOPE_REF
&& TREE_CODE (TREE_OPERAND (member, 1)) == TEMPLATE_ID_EXPR)
{
+ tree tmpl;
+ tree args;
+
/* Lookup the template functions now that we know what the
scope is. */
- tree scope = TREE_OPERAND (member, 0);
- tree tmpl = TREE_OPERAND (TREE_OPERAND (member, 1), 0);
- tree args = TREE_OPERAND (TREE_OPERAND (member, 1), 1);
- member = lookup_qualified_name (scope, tmpl,
+ tmpl = TREE_OPERAND (TREE_OPERAND (member, 1), 0);
+ args = TREE_OPERAND (TREE_OPERAND (member, 1), 1);
+ member = lookup_qualified_name (TREE_OPERAND (member, 0), tmpl,
/*is_type_p=*/false,
/*complain=*/false);
if (BASELINK_P (member))
}
else
{
- qualified_name_lookup_error (scope, tmpl, member,
+ qualified_name_lookup_error (object_type, tmpl, member,
input_location);
return error_mark_node;
}