[flang-commits] [clang] [lldb] [libcxx] [llvm] [compiler-rt] [libc] [flang] [clang] Fix assertion failure with deleted overloaded unary operators (PR #78316)
Mariya Podchishchaeva via flang-commits
flang-commits at lists.llvm.org
Wed Jan 17 08:27:10 PST 2024
================
@@ -14310,8 +14310,8 @@ Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper)
<< UnaryOperator::getOpcodeStr(Opc)
<< Input->getSourceRange()),
- *this, OCD_AllCandidates, ArgsArray, UnaryOperator::getOpcodeStr(Opc),
- OpLoc);
+ *this, OCD_AllCandidates, ArgsArray.slice(1),
----------------
Fznamznon wrote:
> IMO, ArgsArray.drop_front() makes more sense to me here.
Okay, done.
https://github.com/llvm/llvm-project/pull/78316
More information about the flang-commits
mailing list