[clang] [clang] Fix a crash from nested ArrayInitLoopExpr (PR #67722)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 28 20:28:43 PDT 2023
================
@@ -10950,6 +10950,9 @@ bool ArrayExprEvaluator::VisitCXXParenListOrInitListExpr(
}
bool ArrayExprEvaluator::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *E) {
+
+ FullExpressionRAII Scope(Info);
+
----------------
isuckatcs wrote:
I added your second testcase to the patch. For the first one `-fexperimental-new-constant-interpreter` still emits `error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]`.
https://github.com/llvm/llvm-project/pull/67722
More information about the cfe-commits
mailing list