Skip to content

Commit 318ab18

Browse files
authored
Merge pull request #6792 from tautschnig/feature/verbose-consistency-checks
Goto functions validation: provide parameter name
2 parents f3e4096 + b60c237 commit 318ab18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/goto-programs/goto_function.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ void goto_functiont::validate(const namespacet &ns, const validation_modet vm)
4040
{
4141
for(const auto &identifier : parameter_identifiers)
4242
{
43-
DATA_CHECK(
43+
DATA_CHECK_WITH_DIAGNOSTICS(
4444
vm,
4545
identifier.empty() || ns.lookup(identifier).is_parameter,
46-
"parameter should be marked 'is_parameter' in the symbol table");
46+
"parameter should be marked 'is_parameter' in the symbol table",
47+
"affected parameter: ",
48+
identifier);
4749
}
4850

4951
// function body must end with an END_FUNCTION instruction

0 commit comments

Comments
 (0)