c++: array of PMF [PR113598]
commit136a828754ff65079a834555582b49d54bd5bc64
authorJason Merrill <jason@redhat.com>
Thu, 25 Jan 2024 17:02:07 +0000 (25 12:02 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 25 Jan 2024 20:22:32 +0000 (25 15:22 -0500)
tree2a84969850e95d727b6b4d03e9df468d1eb94510
parent44868e7298de5048d6f04d7fa098d5bc767c8cb8
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.
gcc/cp/init.cc
gcc/testsuite/g++.dg/cpp0x/initlist-pmf2.C [new file with mode: 0644]