System.Addr should always return an untyped pointer [Patch]
Original Reporter info from Mantis: Blaise
-
Reporter name: Blaise.ru
Original Reporter info from Mantis: Blaise
- Reporter name: Blaise.ru
Description:
The $TypedAddress switch should not affect the behavior of System.Addr().
http://docwiki.embarcadero.com/VCL/en/System.Addr
Steps to reproduce:
{$TypedAddress on}
var
p: ^integer;
c: char;
begin
// DCC: compiles
// FPC: Error: Incompatible types: got "^Char" expected "^SmallInt"
p := addr(c)
end.
Mantis conversion info:
- Mantis ID: 18512
- Build: r16762
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 16777 (#731291ae)