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

Check conflicting imported symbol names in Dyno scope-resolver #20806

Merged
merged 4 commits into from
Oct 10, 2022

Conversation

riftEmber
Copy link
Member

@riftEmber riftEmber commented Oct 10, 2022

Updates the Dyno scope-resolver to search for a name in all use/imports, not just the first one that matches, so that name conflicts between imported symbols can be detected.

Resolves https://github.com/Cray/chapel-private/issues/3903.

Testing:

This is necessary to catch name conflicts between used/imported symbols.

Signed-off-by: Anna Rift <anna.rift@hpe.com>
Signed-off-by: Anna Rift <anna.rift@hpe.com>
Signed-off-by: Anna Rift <anna.rift@hpe.com>
Copy link
Contributor

@DanilaFe DanilaFe left a comment

Choose a reason for hiding this comment

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

David and I just ran into this on Friday 😄

compiler/dyno/lib/resolution/scope-queries.cpp Outdated Show resolved Hide resolved
@DanilaFe
Copy link
Contributor

Ah, also, could you please ping me when this merges? I'll need to rebase.

Decided it's okay to do

This reverts commit 269dd30.

Signed-off-by: Anna Rift <anna.rift@hpe.com>
@riftEmber riftEmber merged commit e88f789 into chapel-lang:main Oct 10, 2022
@riftEmber riftEmber deleted the use-name-conflict branch January 26, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants