https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107953
--- Comment #6 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:00e8690ef0d7ac1ced87ceee309dbfa27909a35c commit r16-3444-g00e8690ef0d7ac1ced87ceee309dbfa27909a35c Author: Jason Merrill <ja...@redhat.com> Date: Sun Aug 24 05:15:01 2025 -0400 c++: > in lambda in template arg [PR107953] As with PR116928, we need to set greater_than_is_operator_p within the lambda delimiters. PR c++/107953 gcc/cp/ChangeLog: * parser.cc (cp_parser_lambda_expression): Set greater_than_is_operator_p. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/lambda-targ18.C: New test.