Am 19.08.2018 um 10:08 schrieb Florian Klämpfl:
> Not really, you have also to fix the comments below because as soon as the 
> range is 0..127 and the test is against 127, 
> Delphi shows exactly the same behavior as FPC.
Not really. You don't have to change the range, there is a warning emitted for
the Host Type (I>127 in this case), but codegen works on the worst-case scenario
for the Storage Type, so the expression is never removed. In other words, W1021
is never treated as the same as an actual False constant.


> as soon as [something changes], Delphi shows exactly the same behavior as FPC.

But that's kind of the point of this collection: sometimes the rules intersect,
but for most cases, they don't.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to