Thank you for your advices. This compiles in {$mode objfpc}. Haven't tested running yet. I'll post the result.
Please report this as a bug then.
QuotePlease report this as a bug then. It compiles well in {$mode objfpc}. Do you mean to report a but, because it does not compile in {$mode delphi}?