Internal error 2024011501
Summary
The following code using generics and dynamic arrays fails to compile with Fatal: Internal error 2024011501. (The generic function isn't specialized.)
Steps to reproduce
Compile this:
// test.pas
{$MODE OBJFPC}
uses
testunit;
begin
end.
// testunit.pas
{$MODE OBJFPC}
unit testunit;
interface
generic procedure Test1<T>();
procedure Test2(Arg: array of Integer);
implementation
generic procedure Test1<T>();
begin
Test2([T.Foo]);
end;
procedure Test2(Arg: array of Integer);
begin
end;
end.
This gives the error testunit.pas(19,1) Fatal: Internal error 2024011501.
System Information
- Operating system: Linux
- Processor architecture: x86-64
- Compiler version: trunk compiled on 2025/07/03
- Device: Computer