[fpc-devel] bug 3626
Peter Vreman
peter at freepascal.org
Thu Feb 3 08:13:56 CET 2005
>> im not going to argue whether this is right or wrong but in delphi at
>> least
>> $R only affects run time range checking. In delphi that code will give
>> an
>> error (constant expression violates subrange bounds) even with range
>> checking off.
I think this is a special case with for-loops. Delphi also doesn't allow
the loop-variable to be int64. I'll add a check to test for the 32bit
range. Ofcourse this is a 32bit target only issue. The code is legal on
64bit targets.
More information about the fpc-devel
mailing list