https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121854
--- Comment #3 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:0836fd448bbe36267c179ab389d3a4c29297b53e commit r15-10656-g0836fd448bbe36267c179ab389d3a4c29297b53e Author: Jason Merrill <[email protected]> Date: Fri Jan 9 15:02:53 2026 +0800 c++: xobj lambda ICE [PR121854] Before r15-9757 we just ignored the object parameter in this testcase, but after it we get further and ICE on the assert in lambda_expr_this_capture. So let's also backport that hunk of r16-970. I'm still reluctant to backport all of the xobj lambda fixes, but perhaps the time for that is coming. PR c++/121854 gcc/cp/ChangeLog: * lambda.cc (lambda_expr_this_capture): Don't assume current_class_ref. gcc/testsuite/ChangeLog: * g++.dg/cpp23/explicit-obj-lambda19.C: New test.
