[fpc-devel] 32 bit fpc gives no warning for cast that fails on 64 bit?

Martin lazarus at mfriebe.de
Sat Apr 17 21:47:29 CEST 2010


Maybe it's my setting, but I get other warnings, hints even..

var
   p: Pointer;
   e: TEnumType;
begin
   e:= TEnumType(p);

didn't give me any warning (2.4.0, 2.5.1), but it fails (so I am told) 
on 64bit, [ Illegal type conversion: "^untyped" to "<enumeration type>"]

If untyped^ to enum is forbiden, then why does it even *work* on 32 bit? 
(not to speak, of not giving a warning?)


Martin



More information about the fpc-devel mailing list