================ @@ -7939,7 +7927,14 @@ ExprResult Sema::ActOnStartCXXMemberReference(Scope *S, Expr *Base, } } return ExprError(); + } else if (Result.isUnset()) { + // BuildOverloadedArrowExpr returns an empty expression to indicate + // that we need to build a dependent overloaded arrow expression. ---------------- cor3ntin wrote:
I'm not sure RebuildCXXOperatorCallExpr and its caller would deal with an ExprEmpty when calling ActOnOverloadedArrowExpr So yeah, maybe output parameter + assert in treetransform would be better? https://github.com/llvm/llvm-project/pull/104458 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits