[fpc-devel] Strange dot allowed in array?

Sven Barth pascaldragon at googlemail.com
Sun Apr 13 21:25:05 CEST 2014


On 13.04.2014 16:13, Martin Frb wrote:
> Just seen  http://forum.lazarus.freepascal.org/index.php?topic=24191
>
> trunk (2 or 3 weeks old) indeed compiles the below.
>
> Looking at the SetLength line: Why does it allow the "." ?
>
>
> program Project1;
> type
>    T1 = array of integer;
>    T2 = array of T1;
>    T3 = array of T2;
> var
> a: T3;
> begin
>    SetLength(a[0].[0],1);
> end.

I would say a bug in the parser. Please open a bug report.

Regards,
Sven




More information about the fpc-devel mailing list