[clang] [Clang][OpenMP] Fix crash with captured pointer-to-VLA in outlined regions (PR #182480)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 24 04:48:44 PDT 2026


================
@@ -0,0 +1,9 @@
+// RUN: %clang -x c++ -std=c++20 -emit-llvm -S %s -o %t.ll
+// RUN: %clang -x c++ -fopenmp -std=c++20 -emit-llvm -S %s -o %t.ll
+
+void bar(int N, int (*arr_)[N][N]) {
----------------
AaronBallman wrote:

Can you also add test coverage for lvalue and rvalue references to VLAs?

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


More information about the cfe-commits mailing list