projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
301616f
)
compiler: Avoid extra error for anonymous embedded type.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 11 Oct 2013 02:50:02 +0000
(
02:50
+0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/types.cc
b/gcc/go/gofrontend/types.cc
index e1d68e743455db8672b0d2e13453662ad65e1947..7fa84c5fcc8079c68b4dfa3c2657daad1461ba68 100644
(file)
--- 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)
{