Regression: invalid warning message
Original Reporter info from Mantis: bork
-
Reporter name: Boris Matkov
Original Reporter info from Mantis: bork
- Reporter name: Boris Matkov
Description:
Regression: invalid warning message
Steps to reproduce:
Try to compile this function:
function GetByteArray: TBytes;
begin
SetLength(Result, 3);
Result[0] := 1;
Result[1] := 2;
Result[2] := 3;
end;
In FPC 3.0.4 - all OK, but in FPC 3.2.0 I get the warning message:
Warning: function result variable of a managed type does not seem to be initialized
Mantis conversion info:
- Mantis ID: 37341
- Version: 3.2.0