From e2c51895769f6769b1a1660e83bfe307d206139c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Tue, 30 Jan 2018 08:14:55 +0100 Subject: [PATCH] Move initialization of symboltable The interactive clients all call Main.init, so init the symbol table in this call as well. Belonging to [master]: - OpenModelica/OMCompiler#2129 --- Compiler/Main/Main.mo | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Compiler/Main/Main.mo b/Compiler/Main/Main.mo index 7b6b13c25e7..8ae86656141 100644 --- a/Compiler/Main/Main.mo +++ b/Compiler/Main/Main.mo @@ -776,6 +776,7 @@ algorithm args_1 := Flags.new(args); System.gettextInit(if Config.getRunningTestsuite() then "C" else Flags.getConfigString(Flags.LOCALE_FLAG)); setDefaultCC(); + SymbolTable.reset(); end init; public function main @@ -849,8 +850,6 @@ algorithm try Settings.getInstallationDirectoryPath(); - SymbolTable.reset(); - readSettings(args); if Flags.isSet(Flags.INTERACTIVE_TCP) then print("The flag -d=interactive is depreciated. Please use --interactive=tcp\n");