FPC generates the internal error 2006111510 at code, which is using inline functions with double->int64 casting and -O2/-O3 opt.
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
-
Reporter name: Benjamin Rosseaux
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
- Reporter name: Benjamin Rosseaux
Description:
FPC 2.5.1 (freshed built from SVN) generates the internal error 2006111510 at code with "-O2" and "-O3" codeopt level, which is using inline functions together with wierd int64 casting on paramconst double variables. And without any optimization level on amd64 target or with "-O2"/"-O3" on 32-bit x86 target the code compiles without any errors. And Delphi compiles it also without errors. See attachment for the test prg source code
Steps to reproduce:
ppcx64 -Sd -B -O3 testbug.dpr
Mantis conversion info:
- Mantis ID: 16018
- Platform: Any 64-bit x64/amd64 target
- Version: 2.5.1
- Fixed in version: 2.4.2
- Fixed in revision: 15403 (#dd6900c7)
- Monitored by: » alexionne (Aleksa Todorovic)
- Target version: 2.4.2