Skip to content

printf with record parameter gives internal error 2004102303

Does this even work in C? Crashes FPC though!

Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64

{$mode objfpc}

program test;

type
  TMyRecord = record
  end;

function printf(format: PChar): Integer; external; varargs;

var
  r: TMyRecord;
begin
  printf('test', r); // Fatal: Internal error 2004102303
end.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information