================ @@ -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()) ---------------- xgupta wrote:
I am not familiar with this part of code to add a testcase, and not even sure it is right fix. I will just remove this changes from this PR. 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