https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120757
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:aaeb71da186ab1377b87c65206b13133c5fcf848 commit r13-10308-gaaeb71da186ab1377b87c65206b13133c5fcf848 Author: Jason Merrill <[email protected]> Date: Tue Oct 14 23:27:57 2025 +0300 c++: pointer to auto member function [PR120757] Here r13-1210 correctly changed &A<int>::foo to not be considered type-dependent, but tsubst of the OFFSET_REF got confused trying to tsubst a type that involved auto. Fixed by getting the type from the member rather than tsubst. PR c++/120757 gcc/cp/ChangeLog: * pt.cc (tsubst_copy) [OFFSET_REF]: Don't tsubst the type. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/auto-fn66.C: New test. (cherry picked from commit ea6ef13d0fc4e020d8c405333153dad9eee1f18d)
