mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 11:08:02 +02:00
* check whether the hdef is still a procvardef before accessing it as such
This commit is contained in:
parent
b0e1867b4c
commit
c43f671baa
@ -1546,7 +1546,7 @@ implementation
|
||||
begin
|
||||
{ Parse procvar directives after ; }
|
||||
maybe_parse_proc_directives(hdef);
|
||||
if po_is_function_ref in tprocvardef(hdef).procoptions then
|
||||
if (hdef.typ=procvardef) and (po_is_function_ref in tprocvardef(hdef).procoptions) then
|
||||
begin
|
||||
if not (m_function_references in current_settings.modeswitches) and
|
||||
not (po_is_block in tprocvardef(hdef).procoptions) then
|
||||
@ -1865,7 +1865,7 @@ implementation
|
||||
(hdef.typesym=nil)
|
||||
) or is_funcref(hdef) then
|
||||
begin
|
||||
if po_is_function_ref in tprocvardef(hdef).procoptions then
|
||||
if (hdef.typ=procvardef) and (po_is_function_ref in tprocvardef(hdef).procoptions) then
|
||||
begin
|
||||
if not (m_function_references in current_settings.modeswitches) and
|
||||
not (po_is_block in tprocvardef(hdef).procoptions) then
|
||||
|
Loading…
Reference in New Issue
Block a user