compiler: Avoid extra error for anonymous embedded type.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 11 Oct 2013 02:50:02 +0000 (02:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 11 Oct 2013 02:50:02 +0000 (02:50 +0000)
From-SVN: r203402

gcc/go/gofrontend/types.cc

index e1d68e743455db8672b0d2e13453662ad65e1947..7fa84c5fcc8079c68b4dfa3c2657daad1461ba68 100644 (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)
            {