]> Cypherpunks repositories - gostls13.git/commitdiff
fix b/1722502
authorRuss Cox <rsc@golang.org>
Thu, 19 Mar 2009 02:20:54 +0000 (19:20 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 19 Mar 2009 02:20:54 +0000 (19:20 -0700)
BUG=1722502
R=ken
OCL=26526
CL=26526

src/cmd/gc/walk.c

index 07af514077167c20f18bd69101e62f9d8f7bcaf2..c5442fe76e61f69fe01f82498b4dd5ed5483f882 100644 (file)
@@ -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;