FPC Internal Exception on nested helper type in generic type
Original Reporter info from Mantis: Warfley
-
Reporter name: Frederic
Original Reporter info from Mantis: Warfley
- Reporter name: Frederic
Description:
When defining a type helper nested in a generic type, the FPC fails with an internal exception.
Only in $Mode ObjFPC, doesn't throw an error in delphi mode (even though it doesn't apply the helper)
Steps to reproduce:
This code produces the error:
{mode objfpc}{
H+}
{$ModeSwitch advancedrecords}
{$ModeSwitch typehelpers}
type
generic TTest<T> = record
public type
TTestHelper = type helper for Integer
end;
end;
Mantis conversion info:
- Mantis ID: 38486
- Version: 3.2.1