From: Ian Lance Taylor Date: Thu, 3 Mar 2011 03:31:17 +0000 (+0000) Subject: Don't look for methods on named pointer types. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5a7f1a768aba6e86ef47e197bc430b0dc1f2c6e;p=gcc.git Don't look for methods on named pointer types. From-SVN: r170640 --- diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 368ecae127a..cebf33ae384 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -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();