]> Cypherpunks repositories - gostls13.git/commitdiff
6g crash re mail from gri jun 18.
authorKen Thompson <ken@golang.org>
Thu, 25 Jun 2009 00:50:25 +0000 (17:50 -0700)
committerKen Thompson <ken@golang.org>
Thu, 25 Jun 2009 00:50:25 +0000 (17:50 -0700)
R=r
OCL=30719
CL=30719

src/cmd/gc/dcl.c

index 4312cfaea2f7e25ed9986fb630972bd3032d165b..bf7d92fed6283100ebd5a2a51720f63010623cd4 100644 (file)
@@ -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;
 }