浏览代码

* import the class con-/destructor symbol into the *current* unit not into the unit the symbol comes from

git-svn-id: trunk@34251 -
svenbarth 9 年之前
父节点
当前提交
6b7f55cc77
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/ngenutil.pas

+ 2 - 2
compiler/ngenutil.pas

@@ -865,7 +865,7 @@ implementation
               begin
                 unitinits.emit_procdef_const(pd);
                 if u<>current_module then
-                  u.addimportedsym(pd.procsym);
+                  current_module.addimportedsym(pd.procsym);
               end
             else
               unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
@@ -874,7 +874,7 @@ implementation
               begin
                 unitinits.emit_procdef_const(pd);
                 if u<>current_module then
-                  u.addimportedsym(pd.procsym);
+                  current_module.addimportedsym(pd.procsym);
               end
             else
               unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);