mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 13:10:17 +02:00
* 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 -
This commit is contained in:
parent
7dd0130ac2
commit
c2fec2e819
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user