diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index f8b6f1a3113f..a2064bb6eeab 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -6471,7 +6471,7 @@ Interface_type::finalize_methods() } Named_type* nt = t->named_type(); - if (nt != NULL) + if (nt != NULL && it->parse_methods_ != NULL) { std::vector::const_iterator q; for (q = seen.begin(); q != seen.end(); ++q)