[clang] fix explicit incomplete enum (PR #184210)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 11:46:37 PST 2026


================
@@ -6464,6 +6464,9 @@ static ExprResult BuildConvertedConstantExpression(Sema &S, Expr *From,
   if (checkPlaceholderForOverload(S, From))
     return ExprError();
 
+  if (From->containsErrors())
----------------
erichkeane wrote:

Its a shame to give up on this... Could we instead create a RecoveryExpr of the destination type? 

https://github.com/llvm/llvm-project/pull/184210


More information about the cfe-commits mailing list