From a55abf03260f676300468e66d76756aefec301dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 22 May 2024 16:24:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Epilogue::checkPass():=20a=20dis?= =?UTF-8?q?played=20warning=20is=20actually=20an=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 9eb2e73fb3fd383b6b2a81a0de1338f17c0a6c42) --- src/ModelEquationBlock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index 212e0194..f421f04d 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -367,7 +367,7 @@ Epilogue::checkPass(ModFileStructure& mod_file_struct) const for (const auto& [symb_id, expr] : dynamic_def_table) if (so_far_defined.contains(symb_id)) { - cerr << "WARNING: in the 'epilogue' block, variable '" << symbol_table.getName(symb_id) + cerr << "ERROR: in the 'epilogue' block, variable '" << symbol_table.getName(symb_id) << "' is declared twice" << endl; exit(EXIT_FAILURE); } -- GitLab