Layout undefined type.

From-SVN: r168130
This commit is contained in:
Ian Lance Taylor 2010-12-21 18:59:22 +00:00
parent 093e663242
commit 7a8de70f01
1 changed files with 1 additions and 0 deletions

View 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;
}