From: Russ Cox Date: Thu, 19 Mar 2009 02:20:54 +0000 (-0700) Subject: fix b/1722502 X-Git-Tag: weekly.2009-11-06~2004 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f7772627ad2bb1bf356ef4f0767234bcc98f9cc4;p=gostls13.git fix b/1722502 BUG=1722502 R=ken OCL=26526 CL=26526 --- diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 07af514077..c5442fe76e 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -1806,6 +1806,9 @@ mkdotargs(Node *r, Node *rr, Iter *saver, Node *nn, Type *l, int fp) while(r != N) { defaultlit(r, T); + if(r->type == T) // type check failed + return N; + // generate the next structure field t = typ(TFIELD); t->type = r->type;