* check the owner of current_specializedef as that is Nil if a generic routine is specialized and this is the specialization of one of its parameters or its result type

git-svn-id: trunk@34411 -
This commit is contained in:
svenbarth 2016-09-02 15:48:30 +00:00
parent 08cd62fc7e
commit 6a14bb5014

View File

@ -765,7 +765,11 @@ uses
result:=def;
break;
end;
def:=tstoreddef(def.owner.defowner);
if assigned(def.owner) then
def:=tstoreddef(def.owner.defowner)
else
{ this can happen when specializing a generic function }
def:=nil;
until not assigned(def) or not (df_specialization in def.defoptions);
end;