================
@@ -248,6 +248,25 @@ ExprResult Parser::ParseArrayBoundExpression() {
   // If we parse the bound of a VLA... we parse a non-constant
   // constant-expression!
   Actions.ExprEvalContexts.back().InConditionallyConstantEvaluateContext = 
true;
+  // For a VLA type inside an unevaluated operator like:
+  //
+  //   sizeof(typeof(*(int (*)[N])array))
+  //
+  // in which the expression N is supposed to be ODR-used, as is the `array`.
----------------
zyn0217 wrote:

For `sizeof(typeof(*(int (*)[N])array))`, see 
https://github.com/llvm/llvm-project/commit/968be05b8fdc1d23c055cc4963230a89efbc5967

https://github.com/llvm/llvm-project/pull/123883
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to