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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:38de942670ad39c60ba4feae893d11843e0aebe8

commit r11-11449-g38de942670ad39c60ba4feae893d11843e0aebe8
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.c (build_vec_init): Don't use {} for PMF.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit 136a828754ff65079a834555582b49d54bd5bc64)

Reply via email to