[clang] [Clang][Parser] Fix crash on a compound literal in a VLA bound (PR #244274)

Akash Manna via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 19 20:21:14 PST 2026


akash-manna-sky wrote:

> Is this specifically a C problem?

I thought it was C problem. But C++ had it also, the bound was never a full-expression. Both parsers and `TransformDependentSizedArrayType` now go through `Sema::ActOnArrayBound`; class-typed bounds are left to `BuildArrayType`. Your example is a constant array now, and I added the test.


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


More information about the cfe-commits mailing list