Skip to content

Absolute key word causes internal error when attempting to direct a Char type to an index 1 or more of a short string. in the VAR section.

program Project1;

{$mode objfpc}{$H+}
Var
  S:String[100];
  C:Char absolute S[1];
begin
 //
end.

This causes the compiler to crash with internal error.

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