https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101078
--- Comment #6 from CVS 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:84171488f5eed37020f0ecf8ef9b7a466e501da0 commit r11-8584-g84171488f5eed37020f0ecf8ef9b7a466e501da0 Author: Jason Merrill <ja...@redhat.com> Date: Wed Jun 16 16:09:59 2021 -0400 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.