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