Sfoglia il codice sorgente

* don't insert bogus vmt field in forward-defined classes

git-svn-id: trunk@14961 -
Jonas Maebe 15 anni fa
parent
commit
e693b47234
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      compiler/pdecobj.pas

+ 1 - 0
compiler/pdecobj.pas

@@ -955,6 +955,7 @@ implementation
 
         { generate vmt space if needed }
         if not(oo_has_vmt in current_objectdef.objectoptions) and
+           not(oo_is_forward in current_objectdef.objectoptions) and
            (
             ([oo_has_virtual,oo_has_constructor,oo_has_destructor]*current_objectdef.objectoptions<>[]) or
             (current_objectdef.objecttype in [odt_class])