Sign in Join

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

Mailing lists / fpc-pascal / 2023-03

compiler last sources Internal error on code including generic and anonymous function

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Tomáš Horák

Hello, from time to time I recompile fpc and lazarus from latest sources. After today's recompilation compiler cannot translate construction, what was possible to translate couple of months ago(linux 64b). Compiler gives internal error 2011010304 on line 96. When there is not assignment to Result in anonymous function, it compiles just fine. Did I miss something or is it worth report bug? Attached file is just an example to simulate the problem.

regards, Tomas

Sven Barth
to Tomáš Horák

Tomáš Horák via fpc-pascal schrieb am
So., 26. März 2023, 20:36:

Show quoted text 9 lines
Hello, from time to time I recompile fpc and lazarus from latest sources. After today's recompilation compiler cannot translate construction, what was possible to translate couple of months ago(linux 64b). Compiler gives internal error 2011010304 on line 96. When there is not assignment to Result in anonymous function, it compiles just fine. Did I miss something or is it worth report bug? Attached file is just an example to simulate the problem.

In general an internal error is always worth a bug report, but in this specific case it's already been reported.

Regards,
Sven