瀏覽代碼

compiler: don't use non-visible for current unit assignment and enumerator operators (fixes test webtbf/tw4103)

git-svn-id: trunk@14550 -
paul 15 年之前
父節點
當前提交
4989a1016f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      compiler/symsym.pas

+ 4 - 0
compiler/symsym.pas

@@ -731,6 +731,8 @@ implementation
         for i:=0 to ProcdefList.Count-1 do
           begin
             pd:=tprocdef(ProcdefList[i]);
+            if (pd.owner.symtabletype=staticsymtable) and not pd.owner.iscurrentunit then
+              continue;
             if (equal_defs(todef,pd.returndef) or
                 { shortstrings of different lengths are ok as result }
                 (is_shortstring(todef) and is_shortstring(pd.returndef))) and
@@ -803,6 +805,8 @@ implementation
         for i:=0 to ProcdefList.Count-1 do
           begin
             pd:=tprocdef(ProcdefList[i]);
+            if (pd.owner.symtabletype=staticsymtable) and not pd.owner.iscurrentunit then
+              continue;
             paraidx:=0;
             { ignore vs_hidden parameters }
             while (paraidx<pd.paras.count) and