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

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

https://gcc.gnu.org/g:72e46b3c7ad5e3d2c69868a510c00707c356106a

commit r13-5313-g72e46b3c7ad5e3d2c69868a510c00707c356106a
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Jan 23 15:03:47 2023 -0500

    c++: vector of class with bool ctor [PR108195]

    The transformation done by r13-4564 to use the iterator constructor instead
    of the initializer-list constructor breaks if the iterator pointers are
    themselves treated as elements of an initializer-list, so check for that.

            PR c++/108195

    gcc/cp/ChangeLog:

            * call.cc (build_user_type_conversion_1): Check whether the
            iterators also find a list ctor.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/initlist-vect2.C: New test.

Reply via email to