compiler: Permit an empty interface to be embedded multiple times.
authorIan Lance Taylor <ian@gcc.gnu.org>
Sat, 18 Feb 2012 00:43:39 +0000 (00:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Sat, 18 Feb 2012 00:43:39 +0000 (00:43 +0000)
From-SVN: r184363

gcc/go/gofrontend/types.cc

index f8b6f1a3113f22048ffea8fdb2f0c458b2685f61..a2064bb6eeab262d612ad493a5d1d39488f20ab5 100644 (file)
@@ -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<Named_type*>::const_iterator q;
          for (q = seen.begin(); q != seen.end(); ++q)