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...
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.
There should only be
TFoo<Byte, Boolean>
TFoo<Boolean, Byte>
If you got 3 then you got one of them twice. And if they are different
types, then at some point you get issues with assigning them to the fields?
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel