compiler: Avoid extra error for anonymous embedded type.

From-SVN: r203402
This commit is contained in:
Ian Lance Taylor 2013-10-11 02:50:02 +00:00
parent 301616f7ff
commit cf5e3504b5

View file

@ -4264,12 +4264,7 @@ Struct_type::do_verify()
++p)
{
Type* t = p->type();
if (t->is_undefined())
{
error_at(p->location(), "struct field type is incomplete");
p->set_type(Type::make_error_type());
}
else if (p->is_anonymous())
if (p->is_anonymous())
{
if (t->named_type() != NULL && t->points_to() != NULL)
{