OSDN Git Service

Layout undefined type.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 2010 18:59:22 +0000 (18:59 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Dec 2010 18:59:22 +0000 (18:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168130 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/types.cc

index af541e8..fad9206 100644 (file)
@@ -8061,6 +8061,7 @@ Forward_declaration_type::do_get_tree(Gogo* gogo)
   tree id = no->get_id(gogo);
   tree decl = build_decl(no->location(), TYPE_DECL, id, type_tree);
   TYPE_NAME(type_tree) = decl;
+  layout_type(type_tree);
   return type_tree;
 }