Sign in Join

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

Mailing lists / fpc-pascal / 2012-05

Internal Error 2010021405 when compiling in Linux

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

kyan

Hello all,

I am trying to compile a program that contains the following code consturct:

type
  THashEntry<T> = record
    Key: string;
    Value: T;
    class function Create(const AKey: string; const AValue: T):
THashEntry<T>; static; inline;
  end;

in Lazarus with FPC version 2.7.1 built from the trunk svn repos (http://svn.freepascal.org/svn/fpc/trunk/). It compiles in Windows but fails in (Fedora) Linux with the message: "Fatal: Internal error 2010021405". It is easily reproduced if you copy-paste the type declaration in a new project with $mode Delphi.

This matches the bug #19500 which is marked as resolved by Sven Barth but it seems somehow not to have been fixed in Linux; I don't know if this is possible. I compared the sources of FPC for both Windows and Linux using Beyond Compare and there is no difference. What am I doing wrong?

TIA

Constantine.

Reply by email

Sven Barth
to kyan
"kyan" wrote
Hello all, I am trying to compile a program that contains the following code

consturct:

Show quoted text 20 lines
type THashEntry<T> = record Key: string; Value: T; class function Create(const AKey: string; const AValue: T): THashEntry<T>; static; inline; end; in Lazarus with FPC version 2.7.1 built from the trunk svn repos (http://svn.freepascal.org/svn/fpc/trunk/). It compiles in Windows but fails in (Fedora) Linux with the message: "Fatal: Internal error 2010021405". It is easily reproduced if you copy-paste the type declaration in a new project with $mode Delphi. This matches the bug #19500 which is marked as resolved by Sven Barth but it seems somehow not to have been fixed in Linux; I don't know if this is possible. I compared the sources of FPC for both Windows and Linux using Beyond Compare and there is no difference. What am I doing wrong?

Your code triggers a different bug in the compiler than the mentioned report though the presented error is the same. Please open a new bug report with a example that should compile.

Regards,
Sven

Reply by email

kyan
to Sven Barth
Sven Barth wrote
Your code triggers a different bug in the compiler than the mentioned report though the presented error is the same. Please open a new bug report with a example that should compile.

Done, #0021921.

Reply by email