fpc says "cannot determine which overloaded function to call"
Original Reporter info from Mantis: helbig1
-
Reporter name:
Original Reporter info from Mantis: helbig1
- Reporter name:
Description:
$ fpc abs.p
abs.p(33,9) Error: Can't determine which overloaded function to call
abs.p(35) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
Steps to reproduce:
Here is the source abs.p:
$ cat abs.p
{$MODE ISO}
program mf(input, output);
type
halfword = 0 .. 65535;
glueratio = real;
quarterword = 0.. 255;
twochoices = 1 .. 2;
fourchoices = 1 .. 4;
twohalves = packed record
rh: halfword;
case twochoices of
1: (lh : halfword);
2: (bo: quarterword; b1 : quarterword);
end;
fourquarters = packed record b0: quarterword;
b1: quarterword;
b2: quarterword;
b3: quarterword;
end;
memoryword = record
case fourchoices of
1: (int : integer);
2: (gr : glueratio);
3: (hh: twohalves);
4: (qqqq: fourquarters);
end;
var
mw: memoryword;
begin
mw.hh.lh := 1000;
mw.hh.rh := 123;
writeln(abs(mw.hh.rh + mw.hh.lh - 1000));
end.
Additional information:
This is from Knuths TeX.
Trying to build TeX and friends with fpc.
Mantis conversion info:
- Mantis ID: 35066
- Version: 3.0.4
- Fixed in version: 3.2.0
- Target version: 3.2.0