-2f7ac42a3f83b78d97912ce1e86296b2af4f52b7
+0c8c4fca4b52bc2323561a432436af5343e0f7b4
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
}
go_assert(p != block->bindings()->end_definitions());
- std::string n = (*p)->message_name();
- go_error_at(loc, "goto jumps over declaration of %qs", n.c_str());
- go_inform((*p)->location(), "%qs defined here", n.c_str());
+ for (; p != block->bindings()->end_definitions(); ++p)
+ {
+ if ((*p)->is_variable())
+ {
+ std::string n = (*p)->message_name();
+ go_error_at(loc, "goto jumps over declaration of %qs", n.c_str());
+ go_inform((*p)->location(), "%qs defined here", n.c_str());
+ }
+ }
}
}