summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Thompson <ken@golang.org>2009-06-24 17:50:25 -0700
committerKen Thompson <ken@golang.org>2009-06-24 17:50:25 -0700
commitc9af30256dfa40f26f2a60e88b68dadfbabdd2ba (patch)
tree21b9169337bd598e279199814097da739d310545
parentcaa252ff079af41b0947fadcd3262d24a1bed9d4 (diff)
downloadgolang-c9af30256dfa40f26f2a60e88b68dadfbabdd2ba.tar.gz
6g crash re mail from gri jun 18.
R=r OCL=30719 CL=30719
-rw-r--r--src/cmd/gc/dcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c
index 4312cfaea..bf7d92fed 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;
}