[clang] [clang] Fix parenthesized list initialization of arrays not working with `new` (PR #76976)

Alan Zhao via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 5 12:29:09 PST 2024


alanzhao1 wrote:

> Have you considered the following case?
> 
> ```
>   void foo() {
>     char* arr = new char[]("asdf");
>   }
> ```

Thanks for catching this - this causes this patch to crash. Working on this right now.

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


More information about the cfe-commits mailing list