On 2/24/23 22:37, Hairy Pixels via fpc-pascal wrote:
I’m trying to build a project on Windows and I’m getting the error mentioned in the subject. It appears to be from a nested function in a generic class which is using the “result” keyword to assign the value. Is this a bug or do I need to enable some extra compiler flag on Windows?

It is a bug. (as far as I can tell)

https://gitlab.com/freepascal.org/fpc/source/-/issues/40104


Here’s the compiler I’m using. Free Pascal Compiler version 3.3.1 [2023/02/24] for i386
From that report:

Operating system: Linux, AlmaLinux 9.1, X86_64
Processor architecture: X86_64, 64 bit
Compiler version: 3.3.1-12327-gb997e413
Device: Computer
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to