c++: designated init cleanup [PR105925]
authorJason Merrill <jason@redhat.com>
Thu, 23 Jun 2022 18:41:19 +0000 (14:41 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 23 Jun 2022 21:16:42 +0000 (17:16 -0400)
commit6c72f1bfc3469422460d86314a081353632d4bcb
treefffc5baa95a136a6c86f3591bd53988deb971dc0
parentd610ae121e8ecd738de4dc01e6ac11ecf7c2327e
c++: designated init cleanup [PR105925]

build_aggr_conv expects to run after reshape_init, which will usually have
filled out all the CONSTRUCTOR indexes; there's no reason to limit using
those to the case where the user gave an explicit designator.

PR c++/105925

gcc/cp/ChangeLog:

* call.cc (build_aggr_conv): Don't depend on
CONSTRUCTOR_IS_DESIGNATED_INIT.
gcc/cp/call.cc