[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 30 05:21:14 PDT 2023


================
@@ -7748,6 +7748,24 @@ bool Sema::CheckExplicitlyDefaultedSpecialMember(CXXMethodDecl *MD,
         HadError = true;
       }
     }
+    // [C++23][dcl.fct.def.default]/p2.2
----------------
AaronBallman wrote:

Oh! I was thinking that spaceship was also a special member function that can be defaulted, but you're right, that's... not special. Thank you!

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


More information about the cfe-commits mailing list