Compiler [fatal] error or "exports" function without "interface" section placed
Original Reporter info from Mantis: Awkward
-
Reporter name:
Original Reporter info from Mantis: Awkward
- Reporter name:
Description:
when i trying to build program which uses unit with "exports" section, i got compiler crash if at least one name in "exports" section not exists in "interface" section of unit.
usually i have error like
"Fatal: Internal error 200709272
Fatal: Compilation aborted"
sometime i can get internal address (depends of command line keys)
once i got
Error: Undefined symbol: _SYSINITPAS_D:=D:\Dropbox\src\test_init$ (first seen in 1.o)
tried on FPC trunk and 3.2.0 rc1 versions
Steps to reproduce:
Create unit like this:
unit unita;
interface
implementation
function funca:integer;
begin
result:=0;
end;
exports
funca;
end.
then create empty program like this:
uses unita;
begin
end.
try to build with FPC.
Additional information:
If i use "make" mode after it, program compiled. when i remove all *.o and *.ppu files, compilation breaks.
Mantis conversion info:
- Mantis ID: 36860
- OS: windows
- OS Build: 7
- Platform: i386
- Version: 3.3.1