voc icon indicating copy to clipboard operation
voc copied to clipboard

Negative array indices are permitted, sometimes produce segmentation fault

Open markfirmware opened this issue 2 years ago • 1 comments

MODULE Fault;
  VAR i: INTEGER; a: ARRAY 1 OF INTEGER;
BEGIN
  i := -32768;
  a[i] := 0
END Fault.

markfirmware avatar Feb 03 '24 00:02 markfirmware

oh, thank you for reporting this! i'll take a look!

norayr avatar Mar 11 '24 20:03 norayr

should be fixed by https://github.com/vishapoberon/compiler/pull/111

norayr avatar Apr 22 '25 22:04 norayr