Specialization of virtual generic method 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 following program gives "Compilation raised exception internally" due to the specialization of the virtual generic method.
Steps to reproduce:
{$mode objfpc}
program test;
type
TMyClass = class
generic procedure DoThis<T>(msg: T);
generic procedure DoThat<T>(msg: T); virtual;
end;
generic procedure TMyClass.DoThis<T>(msg:T);
begin
specialize DoThat<T>(msg);
end;
generic procedure TMyChild.DoThat<T>(msg: T);
begin
end;
begin
end.
Mantis conversion info:
- Mantis ID: 38771
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 49228 (#f9957f30)