From a041f899d358832ce9e08d2111c4f26143ae8cb8 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Thu, 21 Nov 2019 21:44:43 +0000 Subject: [PATCH] * when creating the static field of a generic, insert it into the generic instead of the global symtable as it isn't really used anyway git-svn-id: trunk@43542 - --- compiler/symcreat.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/symcreat.pas b/compiler/symcreat.pas index 3d2342b31f..0bfd46e4ff 100644 --- a/compiler/symcreat.pas +++ b/compiler/symcreat.pas @@ -1394,7 +1394,10 @@ implementation hstaticvs.visibility:=fieldvs.visibility; {$else jvm} include(hstaticvs.symoptions,sp_internal); - tabstractrecordsymtable(recst).get_unit_symtable.insert(hstaticvs); + if df_generic in tdef(recst.defowner).defoptions then + tabstractrecordsymtable(recst).insert(hstaticvs) + else + tabstractrecordsymtable(recst).get_unit_symtable.insert(hstaticvs); {$endif jvm} { generate the symbol for the access } sl:=tpropaccesslist.create;