[clang] [clang-tools-extra] [clang][ASTMatchers] Fix `hasArraySize` crash without a size expression (PR #215082)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 9 04:08:31 PDT 2026


================

----------------
zwuis wrote:

I come up with valid code also causing crash.

```cpp
template <int... Is> void f() {
  new int[]{Is...};
}
```

Please add it to tests.

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


More information about the cfe-commits mailing list