[clang] [Clang][OpenMP] Fix crash with captured pointer-to-VLA in outlined regions (PR #182480)
via cfe-commits
cfe-commits at lists.llvm.org
Mon May 25 16:55:08 PDT 2026
Karthikdhondi wrote:
> This fix only handles pointer-to-VLA. It should also handle:
>
> 1. Direct VLA captures: `int arr[n]` (this might already be working - can you please check?).
> 2. References to VLAs: `int (&ref)[n]` and `int (&&ref)[n]` (as Aaron mentioned).
> 3. Multidimensional cases: `int (*p)[n][m]`
>
> Please add test for each scenario.
As noted, Direct VLA captures are already working fine. To ensure the test coverage I have added a testcase for the same.
https://github.com/llvm/llvm-project/pull/182480
More information about the cfe-commits
mailing list