Explorar o código

* don't generate vmt for a generic

git-svn-id: trunk@5428 -
florian %!s(int64=18) %!d(string=hai) anos
pai
achega
28c5578976
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/pdecl.pas

+ 2 - 1
compiler/pdecl.pas

@@ -536,7 +536,8 @@ implementation
                   begin
                     { Build VMT indexes, skip for type renaming and forward classes }
                     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
                         vmtbuilder:=TVMTBuilder.Create(tobjectdef(hdef));
                         vmtbuilder.generate_vmt;