[clang] [clang] Fix direct-initialization with new expressions for arrays (PR #78201)

Mital Ashok via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 01:19:24 PST 2024


MitalAshok wrote:

Yeah #76976 supersedes this.

I would still recommend removing `diag::err_new_array_init_args` if only so:

```c++
    int x[2](1, 2);
    int* y = new int[2](1, 2);
```

have similar error messages.

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


More information about the cfe-commits mailing list