Overloading ability depends on 32-bit vs 64-bit
Original Reporter info from Mantis: marco @marcoonthegit
-
Reporter name: Marco van de Voort
Original Reporter info from Mantis: marco @marcoonthegit
- Reporter name: Marco van de Voort
Description:
The attached program compiles fine in S2/Sd mode in 32-bit, but in 64-bit (win64+linux64) it can't decide which method to call, though there are no pointer types involved.
Error: Can't determine which overloaded function to call
Delphi compiles in 32 and 64-bit.
Steps to reproduce:
Function Test(W:Integer):String; overload;
Begin
Result := 'Integer';
end;
Function Test(W:Word):String; overload;
Begin
Result := 'Word';
end;
var
W:Word;
begin
writeln(Test(W+1));
end.
Mantis conversion info:
- Mantis ID: 33137
- Version: 3.0.4