]> gcc.gnu.org Git - gcc.git/commit
c++: array of PMF [PR113598]
authorJason Merrill <jason@redhat.com>
Thu, 25 Jan 2024 17:02:07 +0000 (12:02 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 24 May 2024 13:26:35 +0000 (09:26 -0400)
commit419b5e17eace9b6b985b9853db0dc1a5478375b6
treeb86843ff55d31595c97a04472fc83d70f75401c2
parent7076c565e22281e193aeafafbf40676426a64b75
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.

(cherry picked from commit 136a828754ff65079a834555582b49d54bd5bc64)
gcc/cp/init.cc
gcc/testsuite/g++.dg/cpp0x/initlist-pmf2.C [new file with mode: 0644]
This page took 0.065111 seconds and 6 git commands to generate.