Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for naming collision when generic reactor is instantiated with different parameters #1864

Merged
merged 4 commits into from
Jun 25, 2023

Conversation

petervdonovan
Copy link
Collaborator

Fixes #1860.

This also fixes another bug aside from #1860 where if two instantiations with different type parameters exist, then there is a naming collision.

I have not written detailed tests for generics in the C target and expect us to find more bugs.

@petervdonovan petervdonovan requested a review from erlingrj June 22, 2023 20:13
@lhstrh
Copy link
Member

lhstrh commented Jun 23, 2023

The example LF code that this fixes should be added as a test.

@petervdonovan
Copy link
Collaborator Author

Thanks for the catch!

Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

LGTM!

@petervdonovan petervdonovan added this pull request to the merge queue Jun 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 25, 2023
@lhstrh lhstrh added this pull request to the merge queue Jun 25, 2023
@erlingrj
Copy link
Collaborator

Sorry for the delay. This fixes the issue on my end. Thanks Peter

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 25, 2023
@petervdonovan petervdonovan added this pull request to the merge queue Jun 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 25, 2023
@petervdonovan petervdonovan added this pull request to the merge queue Jun 25, 2023
Merged via the queue into master with commit 6f6961e Jun 25, 2023
@petervdonovan petervdonovan deleted the generics-multiple-instantiations branch June 25, 2023 19:12
@petervdonovan petervdonovan changed the title Generics multiple instantiations Fix for naming collision when generic reactor is instantiated with different parameters Aug 26, 2023
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.

Multiple definitions of the ports when using generics in the C target
3 participants