Re: [C++ PATCH] Fix ICE in reshape_init_class (PR c++/84874)

2018-03-16 Thread Jakub Jelinek
On Fri, Mar 16, 2018 at 12:29:58AM +0100, Jakub Jelinek wrote: > As the testcase shows, even when we've already reshaped the initializer, if > it uses designated initializers and skips using those over others, we can > have field != d->cur->index. The following patch handles that case. Just to ve

Re: [C++ PATCH] Fix ICE in reshape_init_class (PR c++/84874)

2018-03-15 Thread Jason Merrill
OK. On Thu, Mar 15, 2018 at 7:29 PM, Jakub Jelinek wrote: > Hi! > > As the testcase shows, even when we've already reshaped the initializer, if > it uses designated initializers and skips using those over others, we can > have field != d->cur->index. The following patch handles that case. > > Bo