Fatal: Internal error 2012010601
Original Reporter info from Mantis: sberinde
-
Reporter name: Stefan Berinde
Original Reporter info from Mantis: sberinde
- Reporter name: Stefan Berinde
Description:
Compiling a trivial unit with "-gch" options will trigger a fatal error at compile time. It is something related with pointer checks in a unit.
Steps to reproduce:
Compile unit:
----------------------
unit bug;
interface
implementation
var a: ^longword;
initialization
New(a);
a^:=0; // <- line 11
end.
----------------------
Compiler output:
----------------------
d:\Research\Coding\bug>fpc bug.pas -gch
Free Pascal Compiler version 3.0.0 [2015/11/16] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling bug.pas
bug.pas(11,4) Fatal: Internal error 2012010601
Fatal: Compilation aborted
Error: C:\Software\FPC\bin\i386-Win32\ppc386.exe returned an error exitcode
----------------------
Additional information:
If the code is moved to a program it compiles without error.
Mantis conversion info:
- Mantis ID: 29899
- OS: Win
- OS Build: 7 SP1
- Platform: AMD64
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 34261 (#3a9f2f55)