Jelajahi Sumber

compiler: restore occasionally removed check for sp_internal local symbols

git-svn-id: trunk@14633 -
paul 15 tahun lalu
induk
melakukan
56259a084c
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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