[clang] fix explicit incomplete enum (PR #184210)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 2 12:03:51 PST 2026
================
@@ -6464,6 +6464,9 @@ static ExprResult BuildConvertedConstantExpression(Sema &S, Expr *From,
if (checkPlaceholderForOverload(S, From))
return ExprError();
+ if (From->containsErrors())
----------------
Serosh-commits wrote:
> Its a shame to give up on this... Could we instead create a RecoveryExpr of the destination type?
that's a much better approach for error recovery thanks:)
https://github.com/llvm/llvm-project/pull/184210
More information about the cfe-commits
mailing list