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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:2ed37595a3c5cf246e8eeea337cf3071c4bb3a59

commit r14-11382-g2ed37595a3c5cf246e8eeea337cf3071c4bb3a59
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Feb 28 10:56:49 2025 -0500

    c++: generic lambda, implicit 'this' capture, xobj memfn [PR119038]

    When a generic lambda calls an overload set containing an iobj member
    function we speculatively capture 'this'.  We need to do the same
    for an xobj member function.

            PR c++/119038

    gcc/cp/ChangeLog:

            * lambda.cc (maybe_generic_this_capture): Consider xobj
            member functions as well, not just iobj.  Update function
            comment.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp23/explicit-obj-lambda15.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit 1a150f1f688486b12cd975bdc4cd1bd52a7e0110)

Reply via email to