Skip to content
Snippets Groups Projects
Verified Commit 9eb2e73f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

:bug: Epilogue::checkPass(): a displayed warning is actually an error

parent 0611f949
Branches
No related tags found
No related merge requests found
...@@ -377,7 +377,7 @@ Epilogue::checkPass(ModFileStructure& mod_file_struct) const ...@@ -377,7 +377,7 @@ Epilogue::checkPass(ModFileStructure& mod_file_struct) const
for (const auto& [symb_id, expr] : dynamic_def_table) for (const auto& [symb_id, expr] : dynamic_def_table)
if (so_far_defined.contains(symb_id)) 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; << "' is declared twice" << endl;
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment