]> Cypherpunks repositories - gostls13.git/commitdiff
bug with array bounds
authorKen Thompson <ken@golang.org>
Sat, 27 Sep 2008 00:41:43 +0000 (17:41 -0700)
committerKen Thompson <ken@golang.org>
Sat, 27 Sep 2008 00:41:43 +0000 (17:41 -0700)
R=r
OCL=16021
CL=16023

src/cmd/gc/dcl.c

index 134982ec7dbd588c1b2d2a7fce7813c6b50898d7..a6cfd3550ab3497edb9c702c0cf27945209a1b72 100644 (file)
@@ -806,6 +806,7 @@ addtyp(Type *n, Type *t, int ctxt)
        t->sym = s;
        t->vargen = vargen;
 
+       dowidth(t);
        for(f=s->forwtype; f!=T; f=f->nforw) {
                if(!isptr[f->etype])
                        fatal("addtyp: forward");