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

Dyno fix forwarding with except excluding other symbols #25931

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

riftEmber
Copy link
Member

@riftEmber riftEmber commented Sep 11, 2024

Fix a bug in which a forwarding statement with an except or only clause wouldn't actually forward anything.

This was due to resolveForwardingExprs looking for the type of the expression in the ForwardingDecl with the assumption it'd be an Identifier. That didn't work when except/only is present as then the ForwardingDecl contains a VisibilityClause which doesn't get a type resolved. Fixed by extracting the type of the VisibilityClause's base symbol in that case instead.

Also add a test that this case now works.

Note that we still don't support proper functionality of forwarding with except/only in Dyno at this time; this just makes it so those clauses don't prevent the forwarding entirely.

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

[reviewer info placeholder]

Testing:

  • dyno tests
  • paratest

Signed-off-by: Anna Rift <anna.rift@hpe.com>
Signed-off-by: Anna Rift <anna.rift@hpe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants