Compiler ignores the local {$OVERFLOWCHECKS} directive.
Original Reporter info from Mantis: avk @avk959
-
Reporter name: avk
Original Reporter info from Mantis: avk @avk959
- Reporter name: avk
Description:
It looks like the FPC ignores the local {$OVERFLOWCHECKS} directive.
If you compile the attached example with the command (e. g.):
fpc -O2 overflowcheck.pas
then it will print:
I = 0
J = 4294967295
K = -2147483648
L = 2147483647
Mantis conversion info:
- Mantis ID: 36829
- OS: Windows, Linux
- Build: 44264
- Platform: x86, x86_64
- Version: 3.3.1
- Monitored by: » @avk959 (avk)