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

Resolve the definition of the self specific when re-entering its scope for an inline method definition. #4281

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

zygoloid
Copy link
Contributor

@zygoloid zygoloid commented Sep 6, 2024

This fixes a crash if an inline method definition attempts to access a member of the enclosing generic scope directly.

Fixes #4229.

the generic definition.

The self specific could be used immediately by a nested inline method,
for which we don't have a `Generic(T:! type).` name qualifier, so we
won't have already triggered resolving the self specific definition.
@josh11b josh11b added this pull request to the merge queue Sep 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 6, 2024
@josh11b josh11b added this pull request to the merge queue Sep 6, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 6, 2024
@zygoloid zygoloid added this pull request to the merge queue Sep 6, 2024
Merged via the queue into carbon-language:trunk with commit a4fe9be Sep 6, 2024
8 checks passed
@zygoloid zygoloid deleted the toolchain-4229 branch September 6, 2024 23:30
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.

"Queried ... before it was resolved" in GetConstantInSpecific from toolchain/sem_ir/generic.cpp
2 participants