Преглед изворни кода

* use tdef.unique_id_str to generate the unique internal name for anonymous record defs as using the count of the deflist is no longer correct

git-svn-id: trunk@43616 -
svenbarth пре 5 година
родитељ
комит
06c1a17d13
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      compiler/symdef.pas

+ 1 - 1
compiler/symdef.pas

@@ -4801,7 +4801,7 @@ implementation
           pname:=@n
         else
           begin
-            name:='$InternalRec'+tostr(current_module.deflist.count);
+            name:='$InternalRec'+unique_id_str;
             pname:=@name;
           end;
         oldsymtablestack:=symtablestack;