Internal error 2007020810 for record constructor and -O2
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
Below example can't be compiled with optimization -O2 or higher (-O3, -O4).
Maybe somehow related to #29372 (closed).
===code===
{$MODE DELPHI}
type
TFoo = class
procedure Foo;
end;
TRec = record
constructor Create(A: Int64);
end;
constructor TRec.Create(A: Int64);
begin
end;
procedure TFoo.Foo;
var
LOrderIdentity: TRec;
begin
LOrderIdentity := TRec.Create(0);
end;
begin
end.
Mantis conversion info:
- Mantis ID: 29387
- Version: 3.1.1
- Monitored by: » Vincent (Vincent Snijders)