Explorar o código

* if the objecttype of the forward declaration mismatches use the objecttype previously parsed; fixes access violation of webtbf/tw11970.pp

git-svn-id: trunk@34461 -
svenbarth %!s(int64=9) %!d(string=hai) anos
pai
achega
c2fec2e819
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/pdecobj.pas

+ 1 - 1
compiler/pdecobj.pas

@@ -1347,7 +1347,7 @@ implementation
               begin
                 Message(parser_e_forward_mismatch);
                 { recover }
-                current_structdef:=cobjectdef.create(current_objectdef.objecttype,n,nil,true);
+                current_structdef:=cobjectdef.create(objecttype,n,nil,true);
                 include(current_structdef.objectoptions,oo_is_forward);
               end
             else