diff options
| author | Ken Thompson <ken@golang.org> | 2009-06-24 17:50:25 -0700 |
|---|---|---|
| committer | Ken Thompson <ken@golang.org> | 2009-06-24 17:50:25 -0700 |
| commit | 466dd8da4ebe07a78bac55bba4e640e516eca5d4 (patch) | |
| tree | 21b9169337bd598e279199814097da739d310545 /src | |
| parent | 2ce8b444b91dcb6fd79715a89f750252e49d999c (diff) | |
| download | go-466dd8da4ebe07a78bac55bba4e640e516eca5d4.tar.xz | |
6g crash re mail from gri jun 18.
R=r
OCL=30719
CL=30719
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/gc/dcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
