Optimisation of absolute variable causes: Internal error 200306031
Original Reporter info from Mantis: blimey
-
Reporter name: Geoffrey A Swift
Original Reporter info from Mantis: blimey
- Reporter name: Geoffrey A Swift
Description:
The attached code causes the compiler error "Internal error 200306031" when using level 2 or level 3 optimisation. Compiles OK without optimisation though.
Problem seems to be to do with using an absolute variable as an array subscript.
Steps to reproduce:
Compile the attached code, yields the following results:
C:\Users\blimey>fpc -O3 crash.dpr
Free Pascal Compiler version 2.6.2 [2013/02/12] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling crash.dpr
crash.dpr(11,23) Fatal: Internal error 200306031
Fatal: Compilation aborted
Error: C:\FPC\2.6.2\bin\i386-Win32\ppc386.exe returned an error exitcode (normal
if you did not specify a source file to be compiled)
Additional information:
Can also be reproduced using 2.6.4
Mantis conversion info:
- Mantis ID: 26049
- OS: Microsoft Windows
- OS Build: Windows 7
- Platform: 64-bit
- Version: 2.6.2