Skip to content

Conversation

@kroening
Copy link
Collaborator

This errors variable and enum declarations that use the same identifier as a previously defined module parameter.

@kroening kroening added the SMV label Nov 10, 2025
@kroening kroening force-pushed the already_declared4-fix branch 2 times, most recently from 8631e09 to ea60549 Compare November 10, 2025 20:00
@kroening kroening marked this pull request as ready for review November 10, 2025 20:01
Comment on lines 2144 to 2147
std::unordered_set<irep_idt, irep_id_hash> enums;

// to catch re-use of parameter identifiers
std::unordered_set<irep_idt> parameters;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say both or none should use , irep_id_hash.

This errors variable and enum declarations that use the same identifier as a
previously defined module parameter.
@kroening kroening force-pushed the already_declared4-fix branch from ea60549 to daf9e97 Compare November 10, 2025 20:43
@tautschnig tautschnig merged commit f275cf3 into main Nov 10, 2025
11 checks passed
@tautschnig tautschnig deleted the already_declared4-fix branch November 10, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants