Cardinal in array of const leads to range check error
Original Reporter info from Mantis: michael @mvancanneyt
-
Reporter name: Michael Van Canneyt
Original Reporter info from Mantis: michael @mvancanneyt
- Reporter name: Michael Van Canneyt
Description:
When passing a cardinal to an array of const, the compiler throws a range check.
I see 2 options
- Upgrade cardinal to int64
- Add a new unsigned type to TVarrec, used in Array of const.
Steps to reproduce:
Compile and run attached program:
Runtime error 201 at $0000000000400253
$0000000000400253 line 13 of tf.pp
$000000000040018F
Mantis conversion info:
- Mantis ID: 27933
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 1204 (#5aabab64)
- Target version: 3.0.0