2
0

tb0153.pp 650 B

123456789101112131415161718192021222324252627282930
  1. { Old file: tbs0183.pp }
  2. { internal error 10 in secondnot OK 0.99.11 (PM) }
  3. program Internal_Error_10;
  4. type
  5. PBug = ^TBug;
  6. TBug = array[1..1] of boolean;
  7. var
  8. Left : PBug;
  9. test : longint;
  10. begin
  11. New(left);
  12. test := 1;
  13. { following shows internal error 10 only if the
  14. array index is a var on both sides
  15. ( if either is a constant then it compiles fine, error only occurs if the
  16. not is in the statement )
  17. bug only appears if the array is referred to using a pointer -
  18. if using TBug, and no pointers it compiles fine
  19. with PBug the error appears
  20. }
  21. Left^[test] := not Left^[test];
  22. end.