From: Ken Thompson Date: Thu, 25 Jun 2009 00:50:25 +0000 (-0700) Subject: 6g crash re mail from gri jun 18. X-Git-Tag: weekly.2009-11-06~1340 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=466dd8da4ebe07a78bac55bba4e640e516eca5d4;p=gostls13.git 6g crash re mail from gri jun 18. R=r OCL=30719 CL=30719 --- 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; }