Re: [PATCH] c++: Implement P1009: Array size deduction in new-expressions.

2020-08-21 Thread Jason Merrill via Gcc-patches
On 8/20/20 4:22 PM, Marek Polacek wrote: This patch implements C++20 P1009, allowing code like new double[]{1,2,3}; // array bound will be deduced Since this proposal makes the initialization rules more consistent, it is applied to all previous versions of C++ (thus, effectively, all the

[PATCH] c++: Implement P1009: Array size deduction in new-expressions.

2020-08-20 Thread Marek Polacek via Gcc-patches
This patch implements C++20 P1009, allowing code like new double[]{1,2,3}; // array bound will be deduced Since this proposal makes the initialization rules more consistent, it is applied to all previous versions of C++ (thus, effectively, all the way back to C++11). My patch is based on