On 2016-07-22 14:04, Jonas Maebe wrote:
> FPC has no interprocedural dataflow analysis that could catch something
> like that.
I just tested with Delphi 7, and FPC is Delphi compatible. ;-) D7
doesn't seem to have inter-procedural dataflow analysis either.
Regards,
Graeme
___
On 22/07/16 14:49, Graeme Geldenhuys wrote:
I just discovered a surprising bug in my application. I had a variable
"b" defined which I used in a FOR loop. FPC forbids you to modify that
loop variable inside the for loop - which is understandable.
However, the loop called a local procedure, and t
On 2016-07-22 13:49, Graeme Geldenhuys wrote:
> However, the loop called a local procedure, and that local procedure
> modified the loop variable. FPC never complained about it. Is this a FPC
> bug?
I forgot to mention, I used FPC 2.6.4.
Regards,
Graeme
__