Internal error 200405241 on system.insert(StringVariable,StringConstant,Integer)
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
fpc 2.4.0 (linux i386, Suse 10.0) reports an internal error 200405241 when trying to use system.insert with wrong parameters
Steps to reproduce:
The following program shows the problem.
Line 9 and 10 have wrong type of parameters for the system.assign procedure.
PROGRAM test;
{$mode objfpc}
var a,b: string;
begin
a:= 'Test A';
b:= 'B Test';
system.insert(a,'ing',5);
system.insert('H World','allo',2);
system.insert('&B',b,2);
writeln(a);
writeln(b);
end.
Depending on the mode (defined in line 3) this is the output of the compilation:
Mode objfpc, fpc, tp, macpas:
Compiling test.pp
test.pp(9,3) Fatal: Internal error 20040524
// --> system.insert(a,'ing',5);
Note: if you comment out line 9, it will produce the same internal error on line 10,3
Mode delphi: (this is the output I would indeed expect)
Compiling test.pp
test.pp(9,24) Error: Variable identifier expected
test.pp(10,33) Error: Variable identifier expected
test.pp(16,4) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Additional information:
See attached file error200405241.txt for the output of fpc -va test.pp.
Note: I cannot test with fpc trunk.
Mantis conversion info:
- Mantis ID: 16022
- OS: Suse Linux
- OS Build: 10.0
- Platform: i386
- Version: 2.4.0
- Fixed in version: 2.4.2
- Fixed in revision: 15201 (#78e19bdd)
- Target version: 2.4.2