瀏覽代碼

* procedures containing nested procedures accessing their data can't be inlined, fixes ie in tcalfun8.pp

git-svn-id: trunk@1274 -
florian 20 年之前
父節點
當前提交
77cc54351c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      compiler/nld.pas

+ 2 - 0
compiler/nld.pas

@@ -277,6 +277,8 @@ implementation
                        if assigned(left) then
                          internalerror(200309289);
                        left:=cloadparentfpnode.create(tprocdef(symtable.defowner));
+                       { we can't inline the referenced parent procedure }
+                       exclude(tprocdef(symtable.defowner).procoptions,po_inline);
                        { reference in nested procedures, variable needs to be in memory }
                        make_not_regable(self);
                      end;