voc
voc copied to clipboard
Negative array indices are permitted, sometimes produce segmentation fault
MODULE Fault;
VAR i: INTEGER; a: ARRAY 1 OF INTEGER;
BEGIN
i := -32768;
a[i] := 0
END Fault.
oh, thank you for reporting this! i'll take a look!
should be fixed by https://github.com/vishapoberon/compiler/pull/111