Browse Source

* check parast when inserting in localst

peter 22 years ago
parent
commit
5540304b85
1 changed files with 11 additions and 1 deletions
  1. 11 1
      compiler/symtable.pas

+ 11 - 1
compiler/symtable.pas

@@ -1282,6 +1282,13 @@ implementation
         if assigned(next) and
         if assigned(next) and
            (next.symtabletype=parasymtable) then
            (next.symtabletype=parasymtable) then
           begin
           begin
+            { check para symtable }
+            hsym:=tsym(next.search(sym.name));
+            if assigned(hsym) then
+              begin
+                DuplicateSym(hsym);
+                exit;
+              end;
             { check for duplicate id in local symtable of methods }
             { check for duplicate id in local symtable of methods }
             if assigned(next.next) and
             if assigned(next.next) and
                { funcretsym is allowed !! }
                { funcretsym is allowed !! }
@@ -2452,7 +2459,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.104  2003-06-07 20:26:32  peter
+  Revision 1.105  2003-06-08 11:40:00  peter
+    * check parast when inserting in localst
+
+  Revision 1.104  2003/06/07 20:26:32  peter
     * re-resolving added instead of reloading from ppu
     * re-resolving added instead of reloading from ppu
     * tderef object added to store deref info for resolving
     * tderef object added to store deref info for resolving