aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-03-28 21:20:10 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-03-28 21:20:10 +0000
commit0b3e0e9ef1cdb12edb18af5e7e8dc7ef4ecffb3a (patch)
tree8627b5791c7c23b45d76527cd9b1435aaeb1eb6c /gcc
parentc82fee88dc9758441101e2d92d327f202504b120 (diff)
downloadgcc-0b3e0e9ef1cdb12edb18af5e7e8dc7ef4ecffb3a.zip
gcc-0b3e0e9ef1cdb12edb18af5e7e8dc7ef4ecffb3a.tar.gz
gcc-0b3e0e9ef1cdb12edb18af5e7e8dc7ef4ecffb3a.tar.bz2
Don't bother to check for duplicate interface/named methods.
A named interface type can't have named methods anyhow. From-SVN: r171630
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/gofrontend/types.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc
index 6feb035..47dbc16 100644
--- a/gcc/go/gofrontend/types.cc
+++ b/gcc/go/gofrontend/types.cc
@@ -7029,9 +7029,8 @@ Named_type::do_verify()
if (this->local_methods_ != NULL)
{
Struct_type* st = this->type_->struct_type();
- Interface_type* it = this->type_->interface_type();
bool found_dup = false;
- if (st != NULL || it != NULL)
+ if (st != NULL)
{
for (Bindings::const_declarations_iterator p =
this->local_methods_->begin_declarations();
@@ -7046,13 +7045,6 @@ Named_type::do_verify()
Gogo::message_name(name).c_str());
found_dup = true;
}
- if (it != NULL && it->find_method(name) != NULL)
- {
- error_at(p->second->location(),
- "method %qs redeclares interface method name",
- Gogo::message_name(name).c_str());
- found_dup = true;
- }
}
}
if (found_dup)