Internal error 2010053111 when a function returns Default() of a type declared as "record end"
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
The following program fails to compile with "Fatal: Internal error 2010053111":
{$MODE OBJFPC}
program test;
type
TDummy = record end;
function Foo(): TDummy;
begin
Result := Default(TDummy);
end; // Fatal: Internal error 2010053111
begin
Foo();
end.
Mantis conversion info:
- Mantis ID: 25895
- OS: Debian
- Build: trunk 2014/03/18
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 27223 (#6f14dbde)