[PATCH] D139095: [clang] Add test for CWG405

2022-12-06 Thread Vlad Serebrennikov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG80bae9aacc14: [clang] Add test for CWG405 (authored by Endill). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139095/new/ https://reviews.llvm.org/D139095

[PATCH] D139095: [clang] Add test for CWG405

2022-12-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM Comment at: clang/test/CXX/drs/dr4xx.cpp:99 +void test3(A::S as) { using A::f; f(as); } // ok +void test4(A::S as) { using B::f; f(as); } // ok +

[PATCH] D139095: [clang] Add test for CWG405

2022-12-03 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill added inline comments. Comment at: clang/test/CXX/drs/dr4xx.cpp:99 +void test3(A::S as) { using A::f; f(as); } // ok +void test4(A::S as) { using B::f; f(as); } // ok +void test5(A::S as) { int f; f(as); } // expected-error {{called object type 'int'}} ---

[PATCH] D139095: [clang] Add test for CWG405

2022-12-03 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill updated this revision to Diff 479858. Endill retitled this revision from "[clang] Mark CWG405 as a duplicate of CWG218" to "[clang] Add test for CWG405". Endill edited the summary of this revision. Endill added a comment. Reuse a part of CWG218 test, adding cross-references. CHANGES SINC