diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 4312cfaea2..bf7d92fed6 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; }