]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Layout undefined type.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 21 Dec 2010 18:59:22 +0000 (18:59 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 21 Dec 2010 18:59:22 +0000 (18:59 +0000)
From-SVN: r168130

gcc/go/gofrontend/types.cc

index af541e8eb515558ac876807c70b59bb20528d4f7..fad9206fdf437e91c2781a5a516099409396ffd0 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;
 }