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

bug in argument passing

R=r
OCL=16044
CL=16044
This commit is contained in:
Ken Thompson 2008-09-27 13:32:38 -07:00
parent 2fb4edd3e1
commit 7be2b9fdf6

View File

@ -806,13 +806,15 @@ 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");
f->type = t;
if(s->forwtype != T) {
dowidth(t);
for(f=s->forwtype; f!=T; f=f->nforw) {
if(!isptr[f->etype])
fatal("addtyp: forward");
f->type = t;
}
s->forwtype = T;
}
s->forwtype = T;
d = dcl();
d->dsym = s;