tb0031.pp 309 B

123456789101112131415161718
  1. { %FAIL }
  2. { Old file: tbf0164.pp }
  3. { crash when using undeclared array index in with statement OK 0.99.8 (PFV) }
  4. type t1r = record
  5. a, b: Byte;
  6. end;
  7. t2r = record
  8. l1, l2: Array[1..4] Of t1r;
  9. end;
  10. Var r: t2r;
  11. begin
  12. with r.l1[counter] Do
  13. Inc(a)
  14. end.