diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/go/gofrontend/types.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index bb93a4e..1ed4358 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -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(); |