Sets/Enumerated types in IF Statements does not have a correct comparison result.
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
See program for more information.
When you have a set of an ennumerated two, and an ennumerated type variable and you try to combine the two in an if statement (like below) it will fail every time. This gives no compiler error or warning to use like below (even though it fails).
Basically, set the ennumerated type var and use it in a comparison in the [] to find the subset of b, and it should return a sucess, however, with FPC compiled code it will return a failure every time.
Please contact me if you need further information.
Additional information:
Reporter: Adam Oldham
EMail: adam dot oldham at marconi dot com
Mantis conversion info:
- Mantis ID: 3796
- OS: Linux
- Version: 1.0.4
- Fixed in version: 1.0.5