[Bug c++/105925] [11/12/13 Regression] Could not convert '{{0, 0.0}}' from '<brace-enclosed initializer list>' to 'X' since r12-954-g84fd1b5dff70cd74

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 23 21:17:17 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105925

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:6c72f1bfc3469422460d86314a081353632d4bcb

commit r13-1227-g6c72f1bfc3469422460d86314a081353632d4bcb
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Jun 23 14:41:19 2022 -0400

    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.


More information about the Gcc-bugs mailing list