From 466dd8da4ebe07a78bac55bba4e640e516eca5d4 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 24 Jun 2009 17:50:25 -0700 Subject: [PATCH] 6g crash re mail from gri jun 18. R=r OCL=30719 CL=30719 --- src/cmd/gc/dcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 4312cfaea2f7e..bf7d92fed6283 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; }