Bug in the pascal interpreter
Tom Bradshaw
tb at qucis.UUCP
Thu Nov 17 09:00:21 AEST 1983
Does anyone know of a fix for the following bug in the pascal
interpreter ( 4.1bsd ). The following program
program test(output);
type xxx = -128..127;
var i: xxx;
begin
for i := -3 to 1 do
writeln(i);
writeln('okay');
end.
executed by the pascal interpreter gives the following output ....
-3
-2
-1
Value of -256 is out of range
Error in "test"+1 near line 5.
7 statements executed in 0.02 seconds cpu time.
This problem goes away if the runtime tests of subrange variables are
suppressed but it would be nice if there was a better solution.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list