From 6edf6cad2ce639b8b42ea2ec043f23d232a5cebc Mon Sep 17 00:00:00 2001 From: svenbarth Date: Sun, 24 Nov 2019 00:04:27 +0000 Subject: [PATCH] * also check for Nil symtables in tsymtable.includeoption git-svn-id: trunk@43567 - --- compiler/symbase.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/symbase.pas b/compiler/symbase.pas index 7333bc4606..94e5777694 100644 --- a/compiler/symbase.pas +++ b/compiler/symbase.pas @@ -284,6 +284,10 @@ implementation while assigned(st.defowner) do begin st:=st.defowner.owner; + { this can happen for specializations of routines that are not yet + owned cause they might be thrown away again } + if not assigned(st) then + break; { the flag is already set, so by definition it is set in the owning symtables as well } if option in st.tableoptions then