On 3/4/19 4:21 AM, Jakub Jelinek wrote:
On Sat, Mar 02, 2019 at 10:30:36AM +0100, Jakub Jelinek wrote:
I'm not really sure what to do for foo. Perhaps if we find that case just
require that the order is ok already during build_aggr_conv and fail the
conversion otherwise? We are outside of the standard in that case anyway.
Actually, seems if the designators can match corresponding type,
reshape_init* already fills in the ce->index even on elements without
original designators. So, the following works fine for all the testcases I
came up with.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2019-03-04 Jakub Jelinek <ja...@redhat.com>
PR c++/71446
* call.c (field_in_pset): New function.
(build_aggr_conv): Handle CONSTRUCTOR_IS_DESIGNATED_INIT correctly.
OK.
Jason