From cf5e3504b55071f73420c3ab7756200b1dad7b7a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 11 Oct 2013 02:50:02 +0000 Subject: compiler: Avoid extra error for anonymous embedded type. From-SVN: r203402 --- gcc/go/gofrontend/types.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/go') diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index e1d68e7..7fa84c5 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -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) { -- cgit v1.1