From fb86c393625821903346a9e938aae245a72a84eb Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Fri, 26 Sep 2008 17:41:43 -0700 Subject: [PATCH] bug with array bounds R=r OCL=16021 CL=16023 --- src/cmd/gc/dcl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 134982ec7db..a6cfd3550ab 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");