[clang] Add test for CWG607
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Fri, 7 Apr 2023 13:58:11 +0000 (17:58 +0400)
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Fri, 7 Apr 2023 14:40:35 +0000 (18:40 +0400)
commit4b03869402558d6aa24ce08766825eef34d6aff6
tree4075f070a8c3c81a16eb9c9e7c1049bfdd0e3bf1
parent154825bdf6fb5ec5b4cd7d53cf93d68b185ca55d
[clang] Add test for CWG607

[[https://wg21.link/p1787 | P1787]]: CWG607 is resolved by looking up unqualified names in a mem-initializer-id from outside the parameter scope.
Wording: Lookup for an unqualified name in a mem-initializer-id ignores the constructor’s function parameter scope. ([class.base.init]/2)

Reviewed By: #clang-language-wg, shafik

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