Commit cf5e3504 by Ian Lance Taylor

compiler: Avoid extra error for anonymous embedded type.

From-SVN: r203402
parent 301616f7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment