[PATCH] D139095: [clang] Add test for CWG405
Vlad Serebrennikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 3 11:54:22 PST 2022
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'}}
----------------
I'm surprised that local function declaration prevents ADL, but //using-declaration// doesn't. It has been working this way all along, so I guess I better take a note of this.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139095/new/
https://reviews.llvm.org/D139095
More information about the cfe-commits
mailing list