Re: [PATCH] c++: Fix ICE in reshape_init with init-list [PR95164]

2020-09-07 Thread Jason Merrill via Gcc-patches
On 9/4/20 5:39 PM, Marek Polacek wrote: This patch fixes a long-standing bug in reshape_init_r. Since r209314 we implement DR 1467 which handles list-initialization with a single initializer of the same type as the target. In this test this causes a crash in reshape_init_r when we're processing

[PATCH] c++: Fix ICE in reshape_init with init-list [PR95164]

2020-09-04 Thread Marek Polacek via Gcc-patches
This patch fixes a long-standing bug in reshape_init_r. Since r209314 we implement DR 1467 which handles list-initialization with a single initializer of the same type as the target. In this test this causes a crash in reshape_init_r when we're processing a constructor that has undergone the DR 1