Internal error 2006111510 getting pointer to a function's returned value
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Description:
{$MODE OBJFPC}
program test;
type
TDynamicArray = array of record end; // or array of whatever
PDynamicArray = ^TDynamicArray;
function TestA(): Pointer;
begin
Result := nil;
end;
function TestB(): PDynamicArray;
begin
// can't take address of function return value, but compiler instead says "Internal error 2006111510"
Result := @TDynamicArray(TestA());
end;
begin
end.
Mantis conversion info:
-
Mantis ID: 25622
-
Build: trunk 2014/01/25
-
Version: 2.7.1
-
Fixed in version: 3.0.0
-
Fixed in revision: 26608 (#89d97a3c)