fpc unable to compile a class with default property value over than 32 bits
Original Reporter info from Mantis: ekowahyudin
-
Reporter name: Eko Wahyudin
Original Reporter info from Mantis: ekowahyudin
- Reporter name: Eko Wahyudin
Description:
fpc produce error message
"range check error while evaluating constants"
while compiling a class, and in that class contain a property with default value over than 32 bits.
Steps to reproduce:
just compile this class
type
TMyType = UInt64;
TMyClass = Class
private
FMyProperty: UInt64;
public
constructor Create;
property MyProperty: TMyType
read FMyProperty
write FMyProperty
default $FFFFFFFFFFFF; // <----error point here
// "range check error while evaluating constants"
end;
Mantis conversion info:
- Mantis ID: 19199
- Build: 2011/03/08
- Version: 2.4.2
- Monitored by: » Ask (Alexander S. Klenin), » ekowahyudin (Eko Wahyudin)