[clang] Add test for CWG600
authorVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Tue, 6 Dec 2022 09:42:07 +0000 (12:42 +0300)
committerVlad Serebrennikov <serebrennikov.vladislav@gmail.com>
Tue, 6 Dec 2022 09:42:35 +0000 (12:42 +0300)
commit7e31d0723dbf8ab9355cb58cfc6309be51be3e25
tree1d0a9067dd21ac6292af65b52167f4a6cd8f2aa3
parent2fbe3f9e7941858e9c856474737b5a1420448eb8
[clang] Add test for CWG600

P1787: //CWG600 is resolved by explaining that accessibility affects naming a member in the sense of the ODR.//
Wording: see changes to [class.access] p1 and p4.
Additional references: [[ http://eel.is/c++draft/basic.def.odr#8.sentence-2 | basic.def.odr/8 ]]: //A function is odr-used if it is named by a potentially-evaluated expression or conversion.//

Reviewed By: #clang-language-wg, aaron.ballman

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