Ver Fonte

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

git-svn-id: trunk@4499 -
Jonas Maebe há 19 anos atrás
pai
commit
2b3250aac0
1 ficheiros alterados com 3 adições e 0 exclusões
  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;