================ @@ -1477,8 +1477,16 @@ static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, // void foo(A::private_type); ---------------- cor3ntin wrote: The comment above needs tweaking https://github.com/llvm/llvm-project/pull/91430