===================================================================
@@ -1,4 +1,4 @@
-681580a3afc687ba3ff9ef240c67e8630e4306e6
+e3913d96fb024b916c87a4dc01f413523467ead9
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
===================================================================
@@ -7214,6 +7214,14 @@ Named_object::get_backend(Gogo* gogo, st
std::vector<Btype*>& type_decls,
std::vector<Bfunction*>& func_decls)
{
+ // If this is a definition, avoid trying to get the backend
+ // representation, as that can crash.
+ if (this->is_redefinition_)
+ {
+ go_assert(saw_errors());
+ return;
+ }
+
switch (this->classification_)
{
case NAMED_OBJECT_CONST: