diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-11 02:50:02 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-11 02:50:02 +0000 |
commit | 995844b3bf8f841ddf5dbead6e89b94cff5808f2 (patch) | |
tree | a42aa6cd8174193ce1a221f722e7fb81c2e4280f | |
parent | 220c51cc6412f18ac1b0ae05d9f95e8769fdae8e (diff) | |
download | ppe42-gcc-995844b3bf8f841ddf5dbead6e89b94cff5808f2.tar.gz ppe42-gcc-995844b3bf8f841ddf5dbead6e89b94cff5808f2.zip |
compiler: Avoid extra error for anonymous embedded type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203402 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/go/gofrontend/types.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index e1d68e74345..7fa84c5fcc8 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) { |