[fpc-devel]bug report 2181
peter at freepascal.org
Tue Oct 15 08:48:58 CEST 2002
> About bug report 2181: why 9985 in [1, 2]?
> M := 9985;
> if M in [1, 2] then WriteLn ('Error!');
> I tryed it with fpc 1.1. There is consistent pattern:
> for m:= 1 to n do
> if (m*256+x) in [x] then
This is also how TP/Delphi handles it. We also got a bug report in the
past that asked for this behaviour.
Compile with -Cr to get an error.
More information about the fpc-devel