[fpc-devel] Dangerous optimization in CASE..OF

Florian Klämpfl florian at freepascal.org
Sun Jul 2 19:47:55 CEST 2017


Am 02.07.2017 um 19:29 schrieb Martok:
>    type Percentile = 1..99;
>    var I: Percentile;
>    begin
>      I:= 99;
>      inc(I);   // I is now 100

Forgot the mention:
Tried with $r+ :)?

>    So if this is a legal statement, 

Well, it is a matter of definition, if a statement causing a rte 201 when compiled with $r+ is a
legal statement ...





More information about the fpc-devel mailing list