View Issue Details

IDProjectCategoryView StatusLast Update
0038966FPCCompilerpublic2021-06-06 11:18
Reportersimone Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.2.0 
Summary0038966: Internal Error with Generic Nested Routines
DescriptionGeneric Nested Routines always cause internal error during compilation.
Steps To ReproduceExample:

program Project1;
{$mode ObjFPC}
 
procedure AddGroup;
 
  generic procedure Add<T>(const X : T; const Y : T; out Z : T);
  begin
    Z:=X+Y;
  end;
 
  var
    R : integer;
 
  begin
    specialize Add<integer>(4,5,R);
  end;
 
begin
   AddGroup;
end.

***Compiler Output:

C:\Users\simon\AppData\Local\Temp\project1.lpr(16,6) Fatal: Internal error 200511152


Tagsgenerics
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-06-05 20:00 simone New Issue
2021-06-06 11:18 Sven Barth Tag Attached: generics