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

pgenutil.pas, generate_specialization_phase2:
* ensure that the owner of the newly greated def is set to the symtable we specialize in (happens with generic routines)

git-svn-id: trunk@33825 -

svenbarth преди 9 години
родител
ревизия
2f6a1c01ba
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      compiler/pgenutil.pas

+ 3 - 0
compiler/pgenutil.pas

@@ -1069,6 +1069,9 @@ uses
             tempst.free;
 
             specialization_done(state);
+
+            if not assigned(result.owner) then
+              result.changeowner(specializest);
           end;
 
         generictypelist.free;