[all-commits] [llvm/llvm-project] 14f245: [clang] Add test for CWG399
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Sat May 20 01:17:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 14f245d01a1ee489a13e843e9c77cecf5c7183a9
https://github.com/llvm/llvm-project/commit/14f245d01a1ee489a13e843e9c77cecf5c7183a9
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2023-05-20 (Sat, 20 May 2023)
Changed paths:
M clang/test/CXX/drs/dr2xx.cpp
M clang/test/CXX/drs/dr3xx.cpp
M clang/www/cxx_dr_status.html
Log Message:
-----------
[clang] Add test for CWG399
[[https://wg21.link/p1787 | P1787]]: CWG399 is resolved by explicitly appealing to the lookup for the last component of any suitable nested-name-specifier.
Wording: Otherwise, its nested-name-specifier N shall nominate a type. If N has another nested-name-specifier S, Q is looked up as if its lookup context were that nominated by S. ([basic.lookup.qual]/6.2)
CWG399 revisits a resolution to older CWG244. Our test for CWG244 covers many examples from CWG399, and it was updated in 2020 presumably aware of P1787, so I reused CWG244 test. This approach to reusing was discussed in [[https://reviews.llvm.org/D139095 | a CWG405 patch review]].
Reviewed By: #clang-language-wg, aaron.ballman, shafik
Differential Revision: https://reviews.llvm.org/D147920
More information about the All-commits
mailing list