Unexpected warning for declaration of QWORD constants
Original Reporter info from Mantis:
-
Reporter name:
Original Reporter info from Mantis:
- Reporter name:
Description:
Following returns warning without reason, even constant is explicitly defined as QWORD, evem result is wrote correctly (3.0.4 [2018/10/29] for x86_64).
program test;
const
t: QWORD = $FFFFFFFFFFFFFFFF;
begin
writeln (t);
end.
With implicit cast, the warning vanishing: var t: QWORD = QWORD($FFFFFFFFFFFFFFFF)
I believe implicit definition is enough and the same as implicit cast. then warning is not necessary. As without any definition of QWORD, by default on 64-bit system, default is int64 (i.e. -1), as should be.
Mantis conversion info:
- Mantis ID: 34864
- OS: Ubuntu
- OS Build: 18.10
- Platform: Linux 64-bit
- Version: 3.0.4
- Fixed in version: 3.3.1
- Target version: 3.2.0