Optimization switch causes syntax error
Original Reporter info from Mantis: Barvinok
-
Reporter name: Gennadiy
Original Reporter info from Mantis: Barvinok
- Reporter name: Gennadiy
Description:
Using optimization switches O2 and O3 causes a syntax error:
prowdemo.lpr(13,1) Error: Argument can't be assigned to
Whereas no optimization and O1 mode works perfectly.
Steps to reproduce:
See attached ZIP file with demo project
C:\Dev\Projects\Test>C:\Dev\FPC\2.5.1\bin\x86_64-win64\fpc -O1 -MDelphi prowdemo.lpr
C:\Dev\Projects\Test>C:\Dev\FPC\2.5.1\bin\x86_64-win64\fpc -O2 -MDelphi prowdemo.lpr
prowdemo.lpr(13,1) Error: Argument can't be assigned to
prowdemo.lpr(19) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\Dev\FPC\2.5.1\bin\x86_64-win64\ppcx64.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
Mantis conversion info:
- Mantis ID: 15935
- OS: Windows
- OS Build: 7
- Build: svn rev 14974
- Platform: win64
- Version: 2.5.1
- Fixed in version: 3.0.0
- Monitored by: » alexionne (Aleksa Todorovic)