-affb1bf5fcd7abf05993c54313d8000b93a08d4a
+0476944600d456b2616981fff90c77be5e06edd5
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Selector_expression::lower_method_expression(Gogo* gogo)
{
Location location = this->location();
- Type* type = this->left_->type();
+ Type* left_type = this->left_->type();
+ Type* type = left_type;
const std::string& name(this->name_);
bool is_pointer;
imethod = it->find_method(name);
}
- if (method == NULL && imethod == NULL)
+ if ((method == NULL && imethod == NULL)
+ || (left_type->named_type() != NULL && left_type->points_to() != NULL))
{
if (!is_ambiguous)
error_at(location, "type %<%s%s%> has no method %<%s%>",