Wrong number of parameters specified for call to "<Procedure Variable>" but only for -O2 and above
Original Reporter info from Mantis: ravi
-
Reporter name: ravi dion
Original Reporter info from Mantis: ravi
- Reporter name: ravi dion
Description:
-MDelphi -O1 and below
compiles fine
-MDelphi -O2 and above
SynCommons.pas(60494,32) Error: Wrong number of parameters specified for call to "&LtPos;Procedure Variable>"
SynCommons.pas(60494,63) Error: Wrong number of parameters specified for call to "&LtPos;Procedure Variable>"
SynCommons.pas(63169) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Steps to reproduce:
fpc -MDelphi -O3 SynCommons.pas with attached project
Additional information:
No issues with Free Pascal Compiler version 3.2.1-r48511 [2021/02/07] for x86_64
Mantis conversion info:
- Mantis ID: 38452
- Version: 3.3.1