aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-10-11 02:50:02 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-10-11 02:50:02 +0000
commitcf5e3504b55071f73420c3ab7756200b1dad7b7a (patch)
treea42aa6cd8174193ce1a221f722e7fb81c2e4280f /gcc/go
parent301616f7ffc12a419c7fd12f79d058847f49ecd0 (diff)
downloadgcc-cf5e3504b55071f73420c3ab7756200b1dad7b7a.zip
gcc-cf5e3504b55071f73420c3ab7756200b1dad7b7a.tar.gz
gcc-cf5e3504b55071f73420c3ab7756200b1dad7b7a.tar.bz2
compiler: Avoid extra error for anonymous embedded type.
From-SVN: r203402
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/types.cc7
1 files changed, 1 insertions, 6 deletions
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)
{