-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
bogus function overload error using enum from class #54746
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
Comments
EugeneZelenko
added
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
and removed
new issue
labels
Apr 5, 2022
@llvm/issue-subscribers-clang-frontend |
shafik
added a commit
that referenced
this issue
Nov 29, 2022
… as NonType when they are brought into scope via using enum Currently Sema::ClassifyName(...) in some cases when an enumerator is brought into scope via using enum during lookup it can end up being classified as an OverloadSet. It looks like this was never accounted for when using enum support was implemented and we need to add a check to allow an EnumConstantDecl to be classified as NonType even when it is a class member. This fixes: #58057 #59014 #54746 Differential Revision: https://reviews.llvm.org/D138091
CarlosAlbertoEnciso
pushed a commit
to SNSystems/llvm-debuginfo-analyzer
that referenced
this issue
Nov 30, 2022
… as NonType when they are brought into scope via using enum Currently Sema::ClassifyName(...) in some cases when an enumerator is brought into scope via using enum during lookup it can end up being classified as an OverloadSet. It looks like this was never accounted for when using enum support was implemented and we need to add a check to allow an EnumConstantDecl to be classified as NonType even when it is a class member. This fixes: llvm/llvm-project#58057 llvm/llvm-project#59014 llvm/llvm-project#54746 Differential Revision: https://reviews.llvm.org/D138091
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
build/bin/clang "-cc1" "-triple" "x86_64-redhat-linux-gnu" "-emit-obj" -std=c++20 using-enum.ii
guess I missed something with 'using enum'
The text was updated successfully, but these errors were encountered: