Re: [fpc-devel] generic forward declaration?

2025-07-30 Thread Mattias Gaertner via fpc-devel
On 7/30/25 13:01, Martin Frb via fpc-devel wrote: On 30/07/2025 12:23, Mattias Gaertner via fpc-devel wrote: [...] pas2js compiles it. OTOH pas2js currently creates 3 internal specializations for each TFoo and TBar. There should only be TFoo TFoo Yes. Well, actually, in your example you

Re: [fpc-devel] generic forward declaration?

2025-07-30 Thread Martin Frb via fpc-devel
On 30/07/2025 12:23, Mattias Gaertner via fpc-devel wrote: 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...

Re: [fpc-devel] generic forward declaration?

2025-07-30 Thread Mattias Gaertner via fpc-devel
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/4134

Re: [fpc-devel] generic forward declaration?

2025-07-30 Thread Martin Frb via fpc-devel
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. In the interf