* also add a generic dummy symbol to the current module's dummy symbols after it had been parsed

git-svn-id: trunk@36467 -
This commit is contained in:
svenbarth 2017-06-09 14:31:20 +00:00
parent 06d7e26df0
commit 68c5f45593

View File

@ -633,9 +633,12 @@ implementation
if not (m_delphi in current_settings.modeswitches) then if not (m_delphi in current_settings.modeswitches) then
Message1(sym_e_duplicate_id,genorgtypename) Message1(sym_e_duplicate_id,genorgtypename)
else else
begin
{ we need to find this symbol even if it's a variable or { we need to find this symbol even if it's a variable or
something else when doing an inline specialization } something else when doing an inline specialization }
Include(sym.symoptions,sp_generic_dummy); Include(sym.symoptions,sp_generic_dummy);
add_generic_dummysym(sym);
end;
end end
else else
begin begin
@ -724,7 +727,11 @@ implementation
current_module.checkforwarddefs.add(hdef); current_module.checkforwarddefs.add(hdef);
end; end;
if not assigned(hdef.typesym) then if not assigned(hdef.typesym) then
begin
hdef.typesym:=newtype; hdef.typesym:=newtype;
if sp_generic_dummy in newtype.symoptions then
add_generic_dummysym(newtype);
end;
end; end;
{ in non-Delphi modes we need a reference to the generic def { in non-Delphi modes we need a reference to the generic def
without the generic suffix, so it can be found easily when without the generic suffix, so it can be found easily when