================ @@ -4368,7 +4368,7 @@ bool Sema::DiagRedefinedPlaceholderFieldDecl(SourceLocation Loc, Diag(Loc, diag::err_using_placeholder_variable) << Name; for (DeclContextLookupResult::iterator It = Found; It != Result.end(); It++) { const NamedDecl *ND = *It; - if (ND->getDeclContext() != ND->getDeclContext()) + if (ND->getDeclContext() != ClassDecl->getDeclContext()) ---------------- AaronBallman wrote:
This looks like a functional change to me; if no tests broke, we should probably figure out a test to add for this change. https://github.com/llvm/llvm-project/pull/95715 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits