compiler crash on pointer to open array with -Cr
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Compile the below program with -Cr.
The compiler crashes with an access violation.
It compiles if -Cr is not specified.
Steps to reproduce:
program project1;
{$t+}
var
a : array of integer;
procedure Foo(var c: array of integer);
begin
writeln( (@c)^[1] );
readln;
end;
begin
SetLength(a,5);
a[0]:= 100;
a[1]:= 101;
foo(a);
end.
Mantis conversion info:
- Mantis ID: 25956
- OS: win
- OS Build: vista
- Platform: w32
- Version: 2.6.4
- Fixed in version: 3.0.0
- Fixed in revision: 27487 (#701cdf8e)