Browse Source

* tprocdef.procsym must be set also when a tprocdef is loaded from a PPU

florian 25 years ago
parent
commit
098dd1b56f
1 changed files with 13 additions and 3 deletions
  1. 13 3
      compiler/symsym.pas

+ 13 - 3
compiler/symsym.pas

@@ -738,13 +738,20 @@ implementation
 
 
 
 
     procedure tprocsym.deref;
     procedure tprocsym.deref;
-{$ifdef DONOTCHAINOPERATORS}
       var
       var
+{$ifdef DONOTCHAINOPERATORS}
         t    : ttoken;
         t    : ttoken;
-        last,pd : pprocdef;
+        last : pprocdef;
 {$endif DONOTCHAINOPERATORS}
 {$endif DONOTCHAINOPERATORS}
+        pd : pprocdef;
       begin
       begin
          resolvedef(pdef(definition));
          resolvedef(pdef(definition));
+         pd:=definition;
+         while assigned(pd) do
+           begin
+              pd^.procsym:=@self;
+              pd:=pd^.nextoverloaded;
+           end;
 {$ifdef DONOTCHAINOPERATORS}
 {$ifdef DONOTCHAINOPERATORS}
          if (definition^.proctypeoption=potype_operator) then
          if (definition^.proctypeoption=potype_operator) then
            begin
            begin
@@ -2464,7 +2471,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.3  2000-11-06 23:13:53  peter
+  Revision 1.4  2000-11-08 23:15:17  florian
+    * tprocdef.procsym must be set also when a tprocdef is loaded from a PPU
+
+  Revision 1.3  2000/11/06 23:13:53  peter
     * uppercase manglednames
     * uppercase manglednames
 
 
   Revision 1.2  2000/11/01 23:04:38  peter
   Revision 1.2  2000/11/01 23:04:38  peter