From b240dc129feb5bf9cffcec2a7273237e3e7601e4 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Wed, 7 Dec 2011 11:45:34 +0000 Subject: [PATCH] Don't push the local symtable of the current module, but of that module the generic belongs to (should fix compilation error of Lazarus). git-svn-id: trunk@19771 - --- compiler/pgenutil.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pgenutil.pas b/compiler/pgenutil.pas index ff61096027..484f5bd518 100644 --- a/compiler/pgenutil.pas +++ b/compiler/pgenutil.pas @@ -343,7 +343,7 @@ uses { push the localsymtable if needed } if (hmodule<>current_module) or not current_module.in_interface then - symtablestack.push(current_module.localsymtable); + symtablestack.push(hmodule.localsymtable); { push a temporary global symtable so that the specialization is added to the correct symtable; this symtable does not contain