]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: static memfn from non-dependent base [PR101078]
authorJason Merrill <jason@redhat.com>
Wed, 16 Jun 2021 20:09:59 +0000 (16:09 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 13 May 2022 19:53:55 +0000 (15:53 -0400)
commit5b98dd6703aa1c4aa54de7b6079fd3dc39f7e66d
treea9c4946bb3615fa0e70c903c456d5b3d5f215f04
parent950a97a5039c7b96602edfdf8984b5800f5837f3
c++: static memfn from non-dependent base [PR101078]

After my patch for PR91706, or before that with the qualified call,
tsubst_baselink returned a BASELINK with BASELINK_BINFO indicating a base of
a still-dependent derived class.  We need to look up the relevant base binfo
in the substituted class.

PR c++/101078

gcc/cp/ChangeLog:

* pt.c (tsubst_baselink): Update binfos in non-dependent case.

gcc/testsuite/ChangeLog:

* g++.dg/template/access39.C: New test.
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/access39.C [new file with mode: 0644]