* ugly hack to fix tb0411

This commit is contained in:
peter 2002-10-07 20:12:08 +00:00
parent 05a3b8c136
commit 34dd718c80

View File

@ -695,6 +695,7 @@ implementation
gotwith, gotwith,
gotsubscript, gotsubscript,
gotpointer, gotpointer,
gotvec,
gotclass, gotclass,
gotderef : boolean; gotderef : boolean;
fromdef, fromdef,
@ -702,6 +703,7 @@ implementation
begin begin
valid_for_assign:=false; valid_for_assign:=false;
gotsubscript:=false; gotsubscript:=false;
gotvec:=false;
gotderef:=false; gotderef:=false;
gotclass:=false; gotclass:=false;
gotpointer:=false; gotpointer:=false;
@ -790,7 +792,11 @@ implementation
end; end;
hp:=ttypeconvnode(hp).left; hp:=ttypeconvnode(hp).left;
end; end;
vecn, vecn :
begin
gotvec:=true;
hp:=tunarynode(hp).left;
end;
asn : asn :
hp:=tunarynode(hp).left; hp:=tunarynode(hp).left;
subscriptn : subscriptn :
@ -834,6 +840,17 @@ implementation
begin begin
{ check return type } { check return type }
case hp.resulttype.def.deftype of case hp.resulttype.def.deftype of
arraydef :
begin
{ dynamic arrays are allowed when there is also a
vec node }
if is_dynamic_array(hp.resulttype.def) and
gotvec then
begin
gotderef:=true;
gotpointer:=true;
end;
end;
pointerdef : pointerdef :
gotpointer:=true; gotpointer:=true;
objectdef : objectdef :
@ -958,7 +975,10 @@ implementation
end. end.
{ {
$Log$ $Log$
Revision 1.49 2002-10-05 00:47:03 peter Revision 1.50 2002-10-07 20:12:08 peter
* ugly hack to fix tb0411
Revision 1.49 2002/10/05 00:47:03 peter
* support dynamicarray<>nil * support dynamicarray<>nil
Revision 1.48 2002/10/04 21:13:59 peter Revision 1.48 2002/10/04 21:13:59 peter