浏览代码

compiler: restore occasionally removed check for sp_internal local symbols

git-svn-id: trunk@14633 -
paul 15 年之前
父节点
当前提交
56259a084c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/symtable.pas

+ 3 - 0
compiler/symtable.pas

@@ -615,6 +615,9 @@ implementation
         else if ((tsym(sym).owner.symtabletype in
               [ObjectSymtable,parasymtable,localsymtable,staticsymtable])) then
           begin
+           if (Errorcount<>0) or
+              (sp_internal in tsym(sym).symoptions) then
+             exit;
            { do not claim for inherited private fields !! }
            if (tsym(sym).refs=0) and (tsym(sym).owner.symtabletype=ObjectSymtable) then
              case tsym(sym).typ of