[fpc-devel] Record with dynamic array of same type
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Dec 9 15:22:51 CET 2009
On 09 Dec 2009, at 15:06, Paul van Helden wrote:
> In the beginning of this year I could compile this:
>
> TMyRecord = record
> Id: Integer;
> Name: String;
> ChildRecords: array of TMyRecord;
> end;
>
> ...but now with FPC 2.2.4 I get "Error: Illegal expression" on line 4
>
> Why the change?
I can't even compile it with FPC 2.0.4 (the oldest FPC version I have
lying around, and which was released in August 2006). What was the
previous FPC version that you used and which could compile the above?
> (And if there is a good reason, could the error message be more
> descriptive?)
I guess it should be possible to give an error similar to what Kylix
does:
tt.pp(9) Error: Type 'TMyRecord' is not yet completely defined
Jonas
More information about the fpc-devel
mailing list