Commit 97d2b658 by Ian Lance Taylor

Check for pointer to error type when looking for method.

From-SVN: r167878
parent 5b26ad55
......@@ -7564,7 +7564,7 @@ Type::bind_field_or_method(Gogo* gogo, const Type* type, Expression* expr,
const std::string& name,
source_location location)
{
if (type->is_error_type())
if (type->deref()->is_error_type())
return Expression::make_error(location);
const Named_type* nt = type->named_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