浏览代码

* 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 9 年之前
父节点
当前提交
c2fec2e819
共有 1 个文件被更改,包括 1 次插入1 次删除
  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