In Delphi mode, unnecessary warnings about uninitialized fields in some constant records
Original Reporter info from Mantis: jcchu
-
Reporter name: JC Chu
Original Reporter info from Mantis: jcchu
- Reporter name: JC Chu
Description:
In Delphi mode, the compiler will issue a warning for a constant record declaration, if the record type has associated methods or operators.
For example, the compiler accepts the following code,
type
TTestRec2 = record
A, B: Integer;
class operator Explicit(const rec: TTestRec2): ShortString;
end;
const
r2: TTestRec2 = (A: 3; B: 4);
while warning that ‘Some fields coming after "B" weren't initialized’.
Mantis conversion info:
- Mantis ID: 20594
- OS: Windows NT
- OS Build: 6.1.7601
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 19563 (#f685d676)