================ @@ -142,6 +142,14 @@ NamedDecl *Parser::ParseCXXInlineMethodDef( SkipUntil(tok::semi); } + if (FunctionDecl *FD = + dyn_cast_if_present<FunctionDecl>(FnD->getPreviousDecl())) { + if (isa<CXXRecordDecl>(FD->getLexicalDeclContext()) || + Actions.getDefaultedFunctionKind(FD).asComparison() == + Sema::DefaultedComparisonKind::None) ---------------- zyn0217 wrote:
What makes it necessary that 1. we have to check the semantics on the parser side 2. we have to special-case the comparison operators? I'd like some comments explaining the rationale behind this. https://github.com/llvm/llvm-project/pull/136717 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits