Revert Fix for c++/50864.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180640
138bc75d-0d04-0410-961f-
82ee72b054a4
else if (TREE_CODE (member) == SCOPE_REF
&& TREE_CODE (TREE_OPERAND (member, 1)) == TEMPLATE_ID_EXPR)
{
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. */
/* 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))
/*is_type_p=*/false,
/*complain=*/false);
if (BASELINK_P (member))
- qualified_name_lookup_error (scope, tmpl, member,
+ qualified_name_lookup_error (object_type, tmpl, member,
input_location);
return error_mark_node;
}
input_location);
return error_mark_node;
}