Used to trigger an ICE on
var v struct{I}; type I interface{}
Updates issue 7.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@185932
138bc75d-0d04-0410-961f-
82ee72b054a4
}
case Type::TYPE_STRUCT:
}
case Type::TYPE_STRUCT:
+ // Traverse the field types first in case there is an embedded
+ // field with methods that the struct should inherit.
+ if (t->struct_type()->traverse_field_types(this) == TRAVERSE_EXIT)
+ return TRAVERSE_EXIT;
t->struct_type()->finalize_methods(this->gogo_);
t->struct_type()->finalize_methods(this->gogo_);
+ return TRAVERSE_SKIP_COMPONENTS;