https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113544
--- Comment #2 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:77d3fb39c62558838c0e905df717903b5393dfc9 commit r14-8502-g77d3fb39c62558838c0e905df717903b5393dfc9 Author: Jason Merrill <ja...@redhat.com> Date: Fri Jan 26 17:33:51 2024 -0500 c++: local class in generic lambda [PR113544] My earlier commit r14-278-gd60cbbfaa9a3ad was a start toward better handling of local classes in generic lambdas, but isn't actually useful by itself and breaks this testcase, so let's revert it for now. PR c++/113544 gcc/cp/ChangeLog: * pt.cc (instantiate_class_template): Don't partially instantiate. (tsubst_stmt): Likewise. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/lambda-generic-nested3.C: New test.