1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:04:40 -07:00

bug with array bounds

R=r
OCL=16021
CL=16023
This commit is contained in:
Ken Thompson 2008-09-26 17:41:43 -07:00
parent 8545700af8
commit fb86c39362

View 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");