Skip to content

Commit

Permalink
6g crash re mail from gri jun 18.
Browse files Browse the repository at this point in the history
R=r
OCL=30719
CL=30719
  • Loading branch information
ken committed Jun 25, 2009
1 parent 2ce8b44 commit 466dd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/gc/dcl.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 466dd8d

Please sign in to comment.