This is an archive of the discontinued LLVM Phabricator instance.

[C++] Don't filter using declaration when we perform qualified look up
ClosedPublic

Authored by ChuanqiXu on Apr 17 2023, 2:12 AM.

Details

Summary

Close https://github.com/llvm/llvm-project/issues/62174

And this was originally a try to close https://github.com/llvm/llvm-project/issues/62158.

I don't feel this is the correct fix. I just think it is not bad as an ad-hoc patch. And let's discuss things in the higher-level in the above GitHub issue link.

Diff Detail

Event Timeline

ChuanqiXu created this revision.Apr 17 2023, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 2:12 AM
ChuanqiXu requested review of this revision.Apr 17 2023, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 2:12 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ChuanqiXu added inline comments.Apr 17 2023, 2:16 AM
clang/lib/Sema/SemaDecl.cpp
1824–1826

This is the ad-hoc change. Look at the following comment.

6375–6378

I can't find the wording in the existing spec (at least not in current [dcl.meaning]). But if p8.cpp will be accepted unexpectedly if I remove RemoveUsingDecls(Previous); completely. It would look good to me if we can remove RemoveUsingDecls(Previous); completely.

clang/test/CXX/special/class.inhctor/p8.cpp
32–33

I don't understand why this should be rejected. I tried to read P0136R1 but I failed to find the related things and I don't find a related wording in the current spec.

ChuanqiXu updated this revision to Diff 520047.May 6 2023, 1:55 AM

Code cleanup and gentle ping~. Given this is small and innocent, I'd like to land this in 2 weeks if no comments come in.

erichkeane accepted this revision.May 8 2023, 6:20 AM

Give folks another 48 hrs to disagree, but this seems fine to me/consistent with other comments.

clang/lib/Sema/SemaDecl.cpp
1824

So this name isn't really what you're doing.

This revision is now accepted and ready to land.May 8 2023, 6:20 AM
ChuanqiXu updated this revision to Diff 521196.May 10 2023, 7:21 PM

Address comments and thank you for reviewing this!

This revision was landed with ongoing or failed builds.May 10 2023, 7:24 PM
This revision was automatically updated to reflect the committed changes.