compiler: Avoid extra error for anonymous embedded type.
From-SVN: r203402
This commit is contained in:
parent
301616f7ff
commit
cf5e3504b5
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue