فهرست منبع

* don't generate vmt for a generic

git-svn-id: trunk@5428 -
florian 18 سال پیش
والد
کامیت
28c5578976
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      compiler/pdecl.pas

+ 2 - 1
compiler/pdecl.pas

@@ -536,7 +536,8 @@ implementation
                   begin
                   begin
                     { Build VMT indexes, skip for type renaming and forward classes }
                     { Build VMT indexes, skip for type renaming and forward classes }
                     if (hdef.typesym=newtype) and
                     if (hdef.typesym=newtype) and
-                       not(oo_is_forward in tobjectdef(hdef).objectoptions) then
+                       not(oo_is_forward in tobjectdef(hdef).objectoptions) and
+                       not(df_generic in hdef.defoptions) then
                       begin
                       begin
                         vmtbuilder:=TVMTBuilder.Create(tobjectdef(hdef));
                         vmtbuilder:=TVMTBuilder.Create(tobjectdef(hdef));
                         vmtbuilder.generate_vmt;
                         vmtbuilder.generate_vmt;