mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 11:09:13 +02:00
* don't crash in case a symbol is not found in type/var/const section
git-svn-id: trunk@23264 -
This commit is contained in:
parent
85ae82def4
commit
288820715d
@ -2210,7 +2210,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
{ if a generic is parsed and when we are inside an with block,
|
{ if a generic is parsed and when we are inside an with block,
|
||||||
a symbol might not be defined }
|
a symbol might not be defined }
|
||||||
if (df_generic in current_procinfo.procdef.defoptions) and
|
if assigned(current_procinfo) and (df_generic in current_procinfo.procdef.defoptions) and
|
||||||
findwithsymtable then
|
findwithsymtable then
|
||||||
begin
|
begin
|
||||||
{ create dummy symbol, it will be freed later on }
|
{ create dummy symbol, it will be freed later on }
|
||||||
|
Loading…
Reference in New Issue
Block a user