From 4363a0633e36a677cd74af3f9154a5cd2d5cdfcd Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 20 Aug 2011 08:25:03 +0000 Subject: [PATCH] * 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 - --- compiler/jvmdef.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/jvmdef.pas b/compiler/jvmdef.pas index 66e78c0674..cb2abbb2e3 100644 --- a/compiler/jvmdef.pas +++ b/compiler/jvmdef.pas @@ -775,8 +775,8 @@ implementation begin if tdef(container.defowner).typ<>procdef then 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; end; end;