Re: [PATCH] c++: Fix P0960 in member init list and array [PR92812]

2020-09-02 Thread Jason Merrill via Gcc-patches
On 9/1/20 6:23 PM, Marek Polacek wrote: This patch nails down the remaining P0960 case in PR92812: struct A { int ar[2]; A(): ar(1, 2) {} // doesn't work without this patch }; Note that when the target object is not of array type, this already works: struct S { int x, y; };

[PATCH] c++: Fix P0960 in member init list and array [PR92812]

2020-09-01 Thread Marek Polacek via Gcc-patches
This patch nails down the remaining P0960 case in PR92812: struct A { int ar[2]; A(): ar(1, 2) {} // doesn't work without this patch }; Note that when the target object is not of array type, this already works: struct S { int x, y; }; struct A { S s; A(): s(1, 2) { } // O