1
0
mirror of https://github.com/golang/go synced 2024-11-18 02:54:47 -07:00

6g crash re mail from gri jun 18.

R=r
OCL=30719
CL=30719
This commit is contained in:
Ken Thompson 2009-06-24 17:50:25 -07:00
parent 2ce8b444b9
commit 466dd8da4e

View File

@ -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;
}