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:
parent
2ce8b444b9
commit
466dd8da4e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user