[clang] Add test for CWG2007
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Tue, 11 Apr 2023 19:12:57 +0000 (22:12 +0300)
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Tue, 11 Apr 2023 19:13:43 +0000 (22:13 +0300)
commita4beecef8f40ad0d42f61e7c495acb2d2d819b10
treeef1124ec87b7226fb5675588006f0c7c691f7638
parentfeb93d28b02c41ca6b069ec1f9e62fdfbb4c8b6c
[clang] Add test for CWG2007

[[https://wg21.link/p1787 | P1787]]: CWG2007 is resolved by skipping unqualified lookup for operators that must be member functions.
Wording: For the operators =, [], or ->, the set of non-member candidates is empty; otherwise, it includes the result of the unqualified lookup for operator@... ([over.match.oper]/3)

Reviewed By: #clang-language-wg, shafik

Differential Revision: https://reviews.llvm.org/D147839
clang/test/CXX/drs/dr20xx.cpp
clang/www/cxx_dr_status.html