mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 04:09:32 +01:00
* 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:
parent
08cd62fc7e
commit
6a14bb5014
@ -765,7 +765,11 @@ uses
|
|||||||
result:=def;
|
result:=def;
|
||||||
break;
|
break;
|
||||||
end;
|
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);
|
until not assigned(def) or not (df_specialization in def.defoptions);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user