Skip to content

Another ICE with forward declaration of generic classes

FPC 3.2.3 win64, Laz 2.2.0-66 Win64

It was a starter of #39581 (closed) - but that minimized example does not exhibit it.

SimpleMultiEv.pas(127,1) Error: Internal error 200602034

The error is triggered on the IMPLEMENTATION keyword.

The code is crude, but it was intended to be as lo-tech as i can.

SimpleMultiEv.pas.gz

type
  TSimpleMultiEvent<P> = class;

  ISimpleMultiEvent<P> = interface

This TSimpleMultiEvent<P> = class; was a remnant from an attempt, that lead to #39581 (closed) discovery. It is not needed. But if you won't remove it - you get another ICE.

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