internal error 200611054 raised on for..to loop when control variable of a generic template type is used
Original Reporter info from Mantis: Lychee
-
Reporter name:
Original Reporter info from Mantis: Lychee
- Reporter name:
Description:
As stated in the summary.
The code in Steps to reproduce, produces a "Error: Ordinal expression expected", directly followed by a "Fatal: Internal error 200611054"
My (out of date) trunk also produced the same errors.
Steps to reproduce:
program test;
{$MODE OBJFPC}
type
generic TTestClass<SomeTemplate> = class
procedure Test;
end;
procedure TTestClass.Test;
var
i : SomeTemplate;
begin
for i := 1 to 10 do WriteLn(i);
end;
begin
end.
Additional information:
Reported as per request (and as error was encountered) at #32111 (closed).
The example code listed here is a simplified version, although i seem unable to generate the same (internal) error in another (more direct) manner.
Mantis conversion info:
- Mantis ID: 32118
- OS: win32
- Platform: i386
- Version: 3.0.2
- Fixed in revision: 36723 (#0c42b6f4)