Generic procedure with open array crashes compiler
Original Reporter info from Mantis: ryan_joseph @genericptr
-
Reporter name: Ryan Joseph
Original Reporter info from Mantis: ryan_joseph @genericptr
- Reporter name: Ryan Joseph
Description:
The test program causes the compiler to crash. The important part is the first "DoThis" procedure which comes before DoThis&LtPos;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&LtPos;T>(msg: T);
begin
end;
generic procedure DoThis<T>(a: array of T);
begin
end;
begin
end.
Mantis conversion info:
- Mantis ID: 38012
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 47253 (#1266afc0)