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

--- Comment #4 from GCC 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:136a828754ff65079a834555582b49d54bd5bc64

commit r14-8438-g136a828754ff65079a834555582b49d54bd5bc64
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Jan 25 12:02:07 2024 -0500

    c++: array of PMF [PR113598]

    Here AGGREGATE_TYPE_P includes pointers to member functions, which is not
    what we want.  Instead we should use class||array, as elsewhere in the
    function.

            PR c++/113598

    gcc/cp/ChangeLog:

            * init.cc (build_vec_init): Don't use {} for PMF.

    gcc/testsuite/ChangeLog:

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

Reply via email to