SetLength() for dynamic array gives warning
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
Compiling demo gives:
vni.pas(4,15) Warning: Variable "ar" of a managed type does not seem to be initialized
in 3.3.1 and 3.1.1
It doesn't give any warning in stable 3.0.4
Note: 3.3.1 is not yet available in combobox here in mantis.
Steps to reproduce:
Try to compile this program (the same is in attachement):
program Test;
var ar: array of Integer;
begin
SetLength(ar, 10);
end.
Additional information:
FPC 3.3.1 r39660 x86_64-linux-qt
FPC 3.1.1
Mantis conversion info:
- Mantis ID: 34171
- OS: Linux
- OS Build: Chakra 64-bit
- Build: 39660
- Platform: amd64
- Version: 3.1.1