Преглед на файлове

* 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;