Hi,

I couldn't compile anything with the following:

procedure x(const a:array of const);
var s:string; // ansistring or shortstring doesn't matter
x([s]);

and tracked it down to the second change block of:
http://www.freepascal.org/cgi-bin/viewcvs.cgi/fpc/compiler/nld.pas.diff?r1=1.116&r2=1.117

I put in
  stringdef :
     hp.left:=ctypeconvnode.create(hp.left,cansistringtype);

I doubt that this is the correct fix, it does however (properly?)
compile above example after this change (with both shortstring and
ansistring).

johannes
-- 
http://www.sipsolutions.de/
GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc
  Key-ID: 9AB78CA5 Johannes Berg <[EMAIL PROTECTED]>
  Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to