[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 07:22:51 PST 2025
================
@@ -2203,6 +2203,12 @@ Parser::ParseCXXCondition(StmtResult *InitStmt, SourceLocation Loc,
return ParseCXXCondition(nullptr, Loc, CK, MissingOK);
}
+ EnterExpressionEvaluationContext Eval(
----------------
erichkeane wrote:
No, more that this applies to the expressoin on 2213 as well as the CXXCondition on 2221 (which looks like a recursive call?). I just want to make sure we're not applying this context to stuff that it shouldn't be here.
https://github.com/llvm/llvm-project/pull/123667
More information about the cfe-commits
mailing list