Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-02

open array and 2.1.1

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joao Morais

Hello,

the following code:

====
program testarray;
uses
   classes;
procedure testparam(aarray: array of tclass);
begin
end;
begin
   testparam([nil, tlist, tstringlist]);
end.
====

compiles under 2.0.4 but fails under 2.1.1 (rev 6583), the compiler think that I have an array of const because of the nil argument.

Known problem? Something that was changed?

Thanks,

Joao Morais
Jonas Maebe
to Joao Morais
Joao Morais wrote
compiles under 2.0.4 but fails under 2.1.1 (rev 6583), the compiler think that I have an array of const because of the nil argument. Known problem? Something that was changed?

Please file a bug report.

Jonas

Joao Morais
to Jonas Maebe
Jonas Maebe wrote 6 lines
> compiles under 2.0.4 but fails under 2.1.1 (rev 6583), the compiler > think that I have an array of const because of the nil argument. > > Known problem? Something that was changed? Please file a bug report.

Done, #8371.

Joao Morais