[clang] [Clang] use constant evaluation context for constexpr if conditions (PR #123667)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 21 06:37:25 PST 2025


================
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc,
       return ParseCXXCondition(nullptr, Loc, CK, MissingOK);
     }
 
+    EnterExpressionEvaluationContext Eval(
----------------
erichkeane wrote:

This doesn't quite seem right to me, as it is covering parsing at least 2 things, do we really intend that? 

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


More information about the cfe-commits mailing list