From 570ffacb92feffbd78def526881cf2c6506bed1c Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 27 Nov 2008 19:04:54 +0000 Subject: [PATCH] * fix virtual without constructor warning for forward classes git-svn-id: trunk@12253 - --- compiler/pdecobj.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/pdecobj.pas b/compiler/pdecobj.pas index d6384b88f3..db7ddd6310 100644 --- a/compiler/pdecobj.pas +++ b/compiler/pdecobj.pas @@ -720,7 +720,9 @@ implementation ) then current_objectdef.insertvmt; + { for implemented classes with a vmt check if there is a constructor } if (oo_has_vmt in current_objectdef.objectoptions) and + not(oo_is_forward in current_objectdef.objectoptions) and not(oo_has_constructor in current_objectdef.objectoptions) then Message1(parser_w_virtual_without_constructor,current_objectdef.objrealname^);