mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 09:10:18 +02: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;
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user