[fpc-devel]Freepascal bug?
Michael.VanCanneyt at Wisa.be
Michael.VanCanneyt at Wisa.be
Mon Oct 13 22:32:35 CEST 2003
On Mon, 13 Oct 2003, Tamas Konkoly wrote:
>
> Hi,
>
> I found a problem in fpc. I don't know that this is a bug or not.
> I would like to know why don't work the first d declaration.
> The second declaration work only well, because I checked it.
>
> type TR=record
> a,b,c:longint;
> end;
> var data:array[0..100]of TR;
> procedure pp(var r:TR);
> var d:^TR;
> begin
> d:=@r[20]; // << this is not compileable
Of course not, it's wrong. r is not an array.
Michael.
More information about the fpc-devel
mailing list