Browse Source

* use procdef.defid instead of procdef.procsym.symid to make local typed
constant names unique, since the symid is the same for overloads

git-svn-id: branches/jvmbackend@18691 -

Jonas Maebe 14 years ago
parent
commit
4363a0633e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/jvmdef.pas

+ 2 - 2
compiler/jvmdef.pas

@@ -775,8 +775,8 @@ implementation
                         begin
                         begin
                           if tdef(container.defowner).typ<>procdef then
                           if tdef(container.defowner).typ<>procdef then
                             internalerror(2011040303);
                             internalerror(2011040303);
-                          { symid is added to prevent problem with overloads }
-                          result:=tprocdef(container.defowner).procsym.realname+'$$'+tostr(tprocdef(container.defowner).procsym.symid)+'$'+result;
+                          { defid is added to prevent problem with overloads }
+                          result:=tprocdef(container.defowner).procsym.realname+'$$'+tostr(tprocdef(container.defowner).defid)+'$'+result;
                           container:=container.defowner.owner;
                           container:=container.defowner.owner;
                         end;
                         end;
                     end;
                     end;