mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-07-17 17:35:59 +02:00
* keep track of the current generic def in the specialization state
This commit is contained in:
parent
db83f9c696
commit
8f81b213dc
@ -40,6 +40,7 @@ type
|
|||||||
oldextendeddefs : tfphashobjectlist;
|
oldextendeddefs : tfphashobjectlist;
|
||||||
oldgenericdummysyms : tfphashobjectlist;
|
oldgenericdummysyms : tfphashobjectlist;
|
||||||
oldspecializestate : pspecializationstate;
|
oldspecializestate : pspecializationstate;
|
||||||
|
oldcurrent_genericdef : tdef;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
tspecializationcontext=class
|
tspecializationcontext=class
|
||||||
|
@ -2740,6 +2740,7 @@ uses
|
|||||||
state.oldsymtablestack:=symtablestack;
|
state.oldsymtablestack:=symtablestack;
|
||||||
state.oldextendeddefs:=current_module.extendeddefs;
|
state.oldextendeddefs:=current_module.extendeddefs;
|
||||||
state.oldgenericdummysyms:=current_module.genericdummysyms;
|
state.oldgenericdummysyms:=current_module.genericdummysyms;
|
||||||
|
state.oldcurrent_genericdef:=current_genericdef;
|
||||||
state.oldspecializestate:=pspecializationstate(current_module.specializestate);
|
state.oldspecializestate:=pspecializationstate(current_module.specializestate);
|
||||||
current_module.specializestate:=@state;
|
current_module.specializestate:=@state;
|
||||||
current_module.extendeddefs:=TFPHashObjectList.create(true);
|
current_module.extendeddefs:=TFPHashObjectList.create(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user