program test;
type
TSimpleAllocator = class
function GetMem(Size: SizeUInt): Pointer; inline;
end;
function TSimpleAllocator.GetMem(Size: SizeUInt): Pointer;
begin
Result:=GetMem(Size);
end;
begin
TSimpleAllocator.Create.GetMem(0);
end.
FPC Trunk 770 hints:
770 *
Note: Call to subroutine "function TSimpleAllocator.GetMem(Size:QWord):System.Pointer;" marked as inline is not inlinedFPC 3.2.2: No hints
The question is not about the correctness of the code, I know there is recursion here, I just wonder why the compiler tries 770 times to inline, maybe it is a logical error in the compiler that can be fixed