瀏覽代碼

* no support yet for packed records which need to be initialized

git-svn-id: trunk@4499 -
Jonas Maebe 19 年之前
父節點
當前提交
2b3250aac0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/ptype.pas

+ 3 - 0
compiler/ptype.pas

@@ -317,6 +317,9 @@ implementation
          recst.addalignmentpadding;
          recst.addalignmentpadding;
          { restore symtable stack }
          { restore symtable stack }
          symtablestack.pop(recst);
          symtablestack.pop(recst);
+         if trecorddef(record_dec).is_packed and
+            record_dec.needs_inittable then
+           Message(type_e_no_packed_inittable);
       end;
       end;