internal error 2014062901

The following wrong code produces internal error 2014062901:

program project1;

{$mode objfpc}{$H+}

function bug(s: string): string;
var
  p:pointer=@s;//internal error 2014062901
begin
end;

begin
end.

Tested with trunk from today on MacOs, and FPC 3.2 on Linux.

Edited by engkin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information