Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
2f6a1c01ba
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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;