dynamic array not always initialized
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
using rev 24475 the below fails. It works using 2.6.0
dynamic types (such as TDynIntArray ) should be initialized, but with 2.7.2 (inspecting the below in the debugger) they are not initialized.
Checking in the debugger it looks like VarStatIntArray2A[5] is not initialized.
Additional information:
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.
Mantis conversion info:
- Mantis ID: 24439
- OS: win
- OS Build: vista
- Platform: w32
- Fixed in version: 3.0.0
- Fixed in revision: r24522 (#b333ef58)
- Target version: 3.0.0