View Issue Details

IDProjectCategoryView StatusLast Update
0038012FPCCompilerpublic2020-10-29 22:14
ReporterRyan Joseph Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0038012: Generic procedure with open array crashes compiler
DescriptionThe test program causes the compiler to crash. The important part is the first "DoThis" procedure which comes before DoThis<T>(a: array of T);

Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling /Developer/Projects/FPC/Various/scratch_pad.pas
scratch_pad.pas(10,1) Error: Compilation raised exception internally
Fatal: Compilation aborted
An unhandled exception occurred at $000000010009145C:
EAccessViolation: Access violation
  $000000010009145C
Steps To Reproduce{$mode objfpc}

program test;

generic procedure DoThis<T>(msg: T);
begin
end;

generic procedure DoThis<T>(a: array of T);
begin
end;

begin
end.
TagsNo tags attached.
Fixed in Revision47253
FPCOldBugId
FPCTarget-
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-10-29 19:23 Ryan Joseph New Issue
2020-10-29 22:01 Florian Assigned To => Florian
2020-10-29 22:01 Florian Status new => resolved
2020-10-29 22:01 Florian Resolution open => fixed
2020-10-29 22:01 Florian Fixed in Version => 3.3.1
2020-10-29 22:01 Florian Fixed in Revision => 47253
2020-10-29 22:01 Florian FPCTarget => -
2020-10-29 22:14 Ryan Joseph Status resolved => closed