https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99213
--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- "Started" with r10-7705. Fixing this is necessary for comprehensible diagnostics when using range adaptor objects from <ranges>, since their partial application and composition operators work by returning local lambdas.