[clang] [clang] Fix a crash from nested ArrayInitLoopExpr (PR #67722)

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 28 13:41:00 PDT 2023


================
@@ -10950,6 +10950,9 @@ bool ArrayExprEvaluator::VisitCXXParenListOrInitListExpr(
 }
 
 bool ArrayExprEvaluator::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *E) {
+
+  FullExpressionRAII Scope(Info);
+
----------------
zygoloid wrote:

Here's a rejects-valid testcase: https://godbolt.org/z/77PEWPcaY (though I needed to work around another `constexpr` bug to get it to work...)

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


More information about the cfe-commits mailing list