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

[Clang][Sema] Fix template name lookup for operator= #90999

Merged
merged 2 commits into from
May 3, 2024

Conversation

sdkrystian
Copy link
Member

@sdkrystian sdkrystian commented May 3, 2024

This fixes a bug in #90152 where operator= was never looked up in the current instantiation, resulting in < never being interpreted as the start of a template argument list.

Since function templates are not copy/move assignment operators, the fix is accomplished by allowing lookup in the current instantiation for operator= when looking up a template name.

Still needs tests (which are currently in progress). Not sure whether a release note is needed as this fixes something introduced in this release.

@sdkrystian sdkrystian requested a review from erichkeane May 3, 2024 19:34
Copy link
Collaborator

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

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

No need for release notes,as you said, this is a fix within this release.

@sdkrystian sdkrystian merged commit 3191e0b into llvm:main May 3, 2024
3 of 4 checks passed
sdkrystian added a commit to sdkrystian/llvm-project that referenced this pull request May 9, 2024
sdkrystian added a commit that referenced this pull request May 9, 2024
… from #91498, #90999, and #90152 (#91620)

This reverts changes in #91498, #90999, and #90152 which make
`operator=` dependent whenever the current class is templated.
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.

None yet

2 participants