diff --git a/compiler/pgenutil.pas b/compiler/pgenutil.pas index 36002580b7..7760a4e134 100644 --- a/compiler/pgenutil.pas +++ b/compiler/pgenutil.pas @@ -1533,6 +1533,9 @@ uses if not searchsym_with_flags(sym.name,srsym,srsymtable,[ssf_no_addsymref]) then srsym:=nil; end + else if (sym.typ=procsym) and + (tprocsym(sym).procdeflist.count>0) then + srsym:=sym else { dummy symbol is already not so dummy anymore } srsym:=nil;