mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-03 20:57:22 +01:00
* fixed function result variable symbol corruption in case a unit is
re-resolved before its implementation is parsed git-svn-id: trunk@14358 -
This commit is contained in:
parent
c3eb47293a
commit
896e481f86
@ -3367,7 +3367,10 @@ implementation
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
{ safety }
|
{ safety }
|
||||||
funcretsym:=nil;
|
{ Not safe! A unit may be reresolved after its interface has been
|
||||||
|
parsed but before its implementation has been parsed, and in that
|
||||||
|
case the funcretsym is still required!
|
||||||
|
funcretsym:=nil; }
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user