Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2023-02

Duplicate identifier "$result"

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hairy Pixels

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?

Here’s the compiler I’m using.

Free Pascal Compiler version 3.3.1 [2023/02/24] for i386

Regards,
Ryan Joseph

Dwight Schauer
to Hairy Pixels
Hairy Pixels 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