diff --git a/src/ParsingDriver.cc b/src/ParsingDriver.cc index 9577a785486f9dbd3b590593ad86a457834c1752..77302c81a5f0adceeb48e4b3504f6a066b9d48d8 100644 --- a/src/ParsingDriver.cc +++ b/src/ParsingDriver.cc @@ -1386,10 +1386,10 @@ ParsingDriver::var_model() error("You must pass the model_name option to the var_model statement."); auto name = its->second; - vector<string> eqtags; auto itvs = options_list.vector_str_options.find("var.eqtags"); - if (itvs != options_list.vector_str_options.end()) - eqtags = itvs->second; + if (itvs == options_list.vector_str_options.end()) + error("You must pass the eqtags option to the var_model statement."); + auto eqtags = itvs->second; mod_file->var_model_table.addVarModel(name, eqtags); options_list.clear();