[clang] [Clang] Handle consteval expression in array bounds expressions (PR #66222)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 27 11:33:34 PDT 2023


================
@@ -5490,6 +5490,9 @@ TreeTransform<Derived>::TransformDependentSizedArrayType(TypeLocBuilder &TLB,
   EnterExpressionEvaluationContext Unevaluated(
       SemaRef, Sema::ExpressionEvaluationContext::ConstantEvaluated);
 
+  // VLA bounds are not truly constant.
----------------
shafik wrote:

This is not always a VLA right? So maybe saying `If we have a VLA then it won't be a constant` 

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


More information about the cfe-commits mailing list