Dan N wrote:
The following program runs without any run-time errors or warnings. How to make it produce a (useful) run-time error?
program prog; var a:1..5; begin a:=5; writeln(a); a:=a+1; {Here it should produce at least a warning} writeln(a); end.
Which GPC version do you use? Newer versions should produce a run-time error here. The latest snapshot is:
http://www.math.uni.wroc.pl/~hebisch/gpc-20060325.tar.bz2
Frank