https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113563
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:611d59589d8c48db051b31e727d7f52910a4cbcd commit r16-1019-g611d59589d8c48db051b31e727d7f52910a4cbcd Author: Jason Merrill <ja...@redhat.com> Date: Fri May 30 08:59:31 2025 -0400 c++: more xobj lambda 'this' capture [PR113563] Nathaniel shared a more extensive test, which revealed more needed fixes. PR c++/113563 gcc/cp/ChangeLog: * lambda.cc (lambda_capture_field_type): Handle 'this' normally. (build_capture_proxy): Special-case 'this' by-ref capture more. (nonlambda_method_basetype): Look through xobj lambdas. gcc/testsuite/ChangeLog: * g++.dg/cpp23/explicit-obj-lambda17.C: New test.