Incorrect local function behaviour
Original Reporter info from Mantis: Gorelkin
-
Reporter name: Sergei Gorelkin
Original Reporter info from Mantis: Gorelkin
- Reporter name: Sergei Gorelkin
Description:
The attached example runs fine when compiled with Delphi, but produces wrong results when compiled with FPC.
It calls a local function 20 times, the first argument increases from 0 to 19, the second argument should be constant. With FPC, however, the arguments are somewhat completely unrelated, and the loop ends after 2 or 3 iterations.
Mantis conversion info:
- Mantis ID: 9432
- Version: 2.3.1