]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Remove PMF special cases from cxx_get_alias_set [PR119969]
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Nov 2025 09:59:35 +0000 (10:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 28 Nov 2025 09:59:35 +0000 (10:59 +0100)
commit0367efb112795290831bbc3eff181707fdfcc52c
tree64db4ff163b05e7055e2a15b173ef9ec8bf1f353
parent99052ad691ffc058f5b89794fd59b64b1d001425
c++: Remove PMF special cases from cxx_get_alias_set [PR119969]

The use of 0 alias set for PMF * types seems to break modref for some reason,
but because PMFs are canonicalized, there should be no reason to special
case the alias set of PMF or PMF * anymore.

2025-11-27  Jakub Jelinek  <jakub@redhat.com>

PR c++/119969
* cp-objcp-common.cc (cxx_get_alias_set): Remove special cases
for TYPE_PTRMEMFUNC_P and INDIRECT_TYPE_P for TYPE_PTRMEMFUNC_P.

* g++.dg/torture/pr119969.C: New test.
gcc/cp/cp-objcp-common.cc
gcc/testsuite/g++.dg/torture/pr119969.C [new file with mode: 0644]