diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-18 00:43:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-18 00:43:39 +0000 |
commit | 09bac6601ad2150d30f3ce7d00e8903a1262fc25 (patch) | |
tree | 9f68446acb857f8a090dccc9a9a7ca930f654a73 /gcc/go/gofrontend | |
parent | efb743a7180d4c87d6fcbebd1f3a8d1b60fe07d9 (diff) | |
download | gcc-09bac6601ad2150d30f3ce7d00e8903a1262fc25.zip gcc-09bac6601ad2150d30f3ce7d00e8903a1262fc25.tar.gz gcc-09bac6601ad2150d30f3ce7d00e8903a1262fc25.tar.bz2 |
compiler: Permit an empty interface to be embedded multiple times.
From-SVN: r184363
Diffstat (limited to 'gcc/go/gofrontend')
-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 f8b6f1a..a2064bb 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<Named_type*>::const_iterator q; for (q = seen.begin(); q != seen.end(); ++q) |