[fpc-pascal] Closure hangs compiler
Hairy Pixels
genericptr at gmail.com
Sun Sep 24 05:48:42 CEST 2023
This program hangs during compiling. Does this happen to you too?
===================================================
Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64
{$mode objfpc}
{$modeswitch anonymousfunctions}
{$modeswitch functionreferences}
program test;
type
TProc = reference to procedure;
function TestNested: TProc;
procedure NestedProc2;
begin
end;
begin
result := procedure
var
p: TProc;
begin
p := @NestedProc2;
end;
end;
var
p: TProc;
begin
p := TestNested;
p();
end.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list