summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/gc/dcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c
index 4312cfaea..bf7d92fed 100644
--- a/src/cmd/gc/dcl.c
+++ b/src/cmd/gc/dcl.c
@@ -1629,7 +1629,7 @@ embedded(Sym *s)
if(s == S)
return n;
n->type = oldtype(s);
- if(isptr[n->type->etype])
+ if(n->type != T && isptr[n->type->etype])
yyerror("embedded type cannot be a pointer");
return n;
}