[fpc-devel] Scalar value is accepted as an argument for an open array parameter

Alexander Klenin klenin at gmail.com
Fri Jun 8 08:18:09 CEST 2012


The following code compiles both with :

procedure F(const A: array of ShortInt); begin end;
begin F(1); end.

I think this is a bug in FPC, but if not -- it should be documented here:
http://freepascal.org/docs-html/ref/refsu59.html#x157-16700014.4.5

I am willing to file an issue one way or another.

-- 
Alexander S. Klenin



More information about the fpc-devel mailing list