Index: todt.c =================================================================== --- todt.c (revision 755) +++ todt.c (working copy) @@ -686,8 +686,13 @@ { unsigned sz = dt_size(d); unsigned vsz = v->type->size(); unsigned voffset = v->offset; - assert(sz <= vsz); + if(0 == vsz) + error("assignment to member of zero length array"); + + if(sz <= vsz) + error("assignment to member beyond end of array"); + unsigned dim = 1; Type *vt; for (vt = v->type->toBasetype();

AltStyle によって変換されたページ (->オリジナル) /