소스 검색

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