Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
2f6a1c01ba
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;