[clang] [Clang] Diagnose defaulted assignment operator with incompatible object parameter (PR #70176)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 05:16:07 PDT 2023
================
@@ -7748,6 +7748,24 @@ bool Sema::CheckExplicitlyDefaultedSpecialMember(CXXMethodDecl *MD,
HadError = true;
}
}
+ // [C++23][dcl.fct.def.default]/p2.2
----------------
cor3ntin wrote:
It applies to special member functions - Which excludes comparison. and constructors can't have an explicit object parameters
https://github.com/llvm/llvm-project/pull/70176
More information about the cfe-commits
mailing list