[clang] [SemaCXX] Fixed defaulted equality operator deletion issue (#97087)[SemaCXX] Fix defaulted equality operator being incorrectly deleted when using namespace (llvm#97087) (PR #166996)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 10:27:55 PST 2025


================
@@ -8262,6 +8262,8 @@ class DefaultedComparisonAnalyzer
     ///   resolution [...]
     CandidateSet.exclude(FD);
 
+   auto &Fns = this->Fns;
----------------
Sirraide wrote:

What does this even do? Before this line, `Fns` is an lvalue equivalent to `this->Fns`; after this line, `Fns` is ... an lvalue that aliases `this->Fns`?

https://github.com/llvm/llvm-project/pull/166996


More information about the cfe-commits mailing list