[clang] [Clang/AMDGPU] Allow zero sized arrays in HIP device code (PR #195716)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue May 5 09:07:42 PDT 2026


jhuber6 wrote:

> Right, so this should be allowed.

I could see a warning maybe, that `[]` is not `[0]` for LDS. But overall I think this is "working as expected" and we shouldn't restrict this just because NVCC does.

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


More information about the cfe-commits mailing list