From: Ken Thompson Date: Sat, 27 Sep 2008 00:41:43 +0000 (-0700) Subject: bug with array bounds X-Git-Tag: weekly.2009-11-06~3099 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fb86c393625821903346a9e938aae245a72a84eb;p=gostls13.git bug with array bounds R=r OCL=16021 CL=16023 --- diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 134982ec7d..a6cfd3550a 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -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");