[clang-tools-extra] [llvm] [clang] [clang] Add test for CWG472 (PR #67948)

2024-01-12 Thread Richard Smith via cfe-commits
@@ -2871,7 +2871,7 @@ C++ defect report implementation status https://cplusplus.github.io/CWG/issues/472.html;>472 drafting Casting across protected inheritance -Not resolved +No zygoloid wrote: For `"no drafting" status, can we say

[clang-tools-extra] [llvm] [clang] [clang] Add test for CWG472 (PR #67948)

2024-01-12 Thread Richard Smith via cfe-commits
zygoloid wrote: > None of the implementations seem to agree with the resolution of the DR: > https://godbolt.org/z/a7nEvW5Gr Yeah, I think this is a case where the wording is clear and everyone implements it, but it doesn't actually do the right thing. The example in the issue "ought to be"

[clang-tools-extra] [llvm] [clang] [clang] Add test for CWG472 (PR #67948)

2024-01-11 Thread via cfe-commits
cor3ntin wrote: After additional archeology, I found the following minutes from Portland , 2012 > Core issue 472: Casting across protected inheritance > _ Would the example work if P2 derived privately from N2? > _ ... Yes.. Hm, that was a good point. > redrafting. Given that, I'd rather we