Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcsrgv!qucis!tb From: tb@qucis.UUCP (Tom Bradshaw) Newsgroups: net.bugs.4bsd Subject: Bug in the pascal interpreter Message-ID: <44@qucis.UUCP> Date: Wed, 16-Nov-83 18:00:21 EST Article-I.D.: qucis.44 Posted: Wed Nov 16 18:00:21 1983 Date-Received: Thu, 17-Nov-83 08:21:49 EST Lines: 31 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.