[fpc-devel] generic forward declaration?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jul 30 12:23:59 CEST 2025



On 7/30/25 11:44, Martin Frb via fpc-devel wrote:
> On 29/07/2025 23:39, Sven Barth via fpc-devel wrote:
>>
>> Please report a bug. Though this might end up not compiling 
>> nevertheless due to the specialization chain going ad infinitum...
>>
> https://gitlab.com/freepascal.org/fpc/source/-/issues/41349
> 
> It does not need to go ad infinitum.

It depends on the compiler implementation.

pas2js compiles it.
OTOH pas2js currently creates 3 internal specializations for each TFoo 
and TBar.

Mattias



More information about the fpc-devel mailing list