https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120757

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Jason Merrill
<[email protected]>:

https://gcc.gnu.org/g:fb9d8d123059481ed91a142b0359e94d82c60520

commit r15-10417-gfb9d8d123059481ed91a142b0359e94d82c60520
Author: Jason Merrill <[email protected]>
Date:   Tue Aug 19 23:15:20 2025 -0400

    c++: pointer to auto member function [PR120757]

    Here r13-1210 correctly changed &A<int>::foo to not be considered
    type-dependent, but tsubst_expr 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_expr) [OFFSET_REF]: Don't tsubst the type.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/auto-fn66.C: New test.

    (cherry picked from commit ea6ef13d0fc4e020d8c405333153dad9eee1f18d)
  • [Bug c++/120757] [13/14/15/16 R... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to