[fpc-devel] issue with trunk and dyn array

Martin lazarus at mfriebe.de
Thu May 16 17:53:28 CEST 2013


forgot: win32 vista

On 16/05/2013 16:43, Martin wrote:
> using rev 24475 the below fails. It works using 2.6.0
>
> Afaik it should work? dynamic types (such as TDynIntArray ) should be 
> initialized?
>
> Checking in the debugger it looks like VarStatIntArray2A[5] is not 
> initialized.
>
>
> program Project1;
>
> type
>   TDynIntArray = Array of Integer;
>
> procedure Foo;
> var
>   VarStatIntArray2A: Array [5..9] of TDynIntArray;
> begin
>   SetLength(VarStatIntArray2A[5],3);
> end;
>
> begin
>   Foo;
> end.
>
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list