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

Forbid multiple identical clauses in “occbin_constraints” block

Closes: #97
parent 0284b249
No related branches found
No related tags found
No related merge requests found
...@@ -871,7 +871,9 @@ occbin_constraints_regime_options_list : occbin_constraints_regime_option ...@@ -871,7 +871,9 @@ occbin_constraints_regime_options_list : occbin_constraints_regime_option
| occbin_constraints_regime_options_list occbin_constraints_regime_option | occbin_constraints_regime_options_list occbin_constraints_regime_option
{ {
$$ = $1; $$ = $1;
$$.insert($2); auto [it, success] = $$.insert($2);
if (!success)
driver.error("The '" + $2.first + "' clause is declared multiple times");
} }
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment