Commit d5a7f1a7 by Ian Lance Taylor

Don't look for methods on named pointer types.

From-SVN: r170640
parent 79d3d3f4
......@@ -7963,9 +7963,7 @@ Type::bind_field_or_method(Gogo* gogo, const Type* type, Expression* expr,
if (type->deref()->is_error_type())
return Expression::make_error(location);
const Named_type* nt = type->named_type();
if (nt == NULL)
nt = type->deref()->named_type();
const Named_type* nt = type->deref()->named_type();
const Struct_type* st = type->deref()->struct_type();
const Interface_type* it = type->deref()->interface_type();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment