Skip to content

Internal error 200205103 with generic const T param

FPC 3.3.1 9236829a

Below code produces Error: Internal error 200205103

program Project1;
{$Mode objfpc}
type
  //generic x<const K> = class  // error semicolon expected, but > found
  generic x<const K; T> = class // so we give it the semicolon...
  public type
    Foo = array[0..K] of byte; // internal error
  end;

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