mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 04:29:17 +02:00
* fixed derefdata corruption in case a unit is re-resolved and it has a
localsymtable with symbols/defs that need to be deref'ed git-svn-id: trunk@14357 -
This commit is contained in:
parent
98470e953d
commit
c3eb47293a
@ -1094,7 +1094,11 @@ uses
|
|||||||
begin
|
begin
|
||||||
tstoredsymtable(globalsymtable).buildderef;
|
tstoredsymtable(globalsymtable).buildderef;
|
||||||
derefdataintflen:=derefdata.size;
|
derefdataintflen:=derefdata.size;
|
||||||
end;
|
end
|
||||||
|
else
|
||||||
|
{ the unit may have been re-resolved, in which case the current
|
||||||
|
position in derefdata is not necessarily at the end }
|
||||||
|
derefdata.seek(derefdata.size);
|
||||||
tstoredsymtable(globalsymtable).buildderefimpl;
|
tstoredsymtable(globalsymtable).buildderefimpl;
|
||||||
if (flags and uf_local_symtable)<>0 then
|
if (flags and uf_local_symtable)<>0 then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user