https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106024
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:e748398b3ef6412ef35b85ef6b0893809aeb49cd commit r12-8537-ge748398b3ef6412ef35b85ef6b0893809aeb49cd Author: Jason Merrill <ja...@redhat.com> Date: Fri Jul 1 11:02:54 2022 -0400 c++: simpler fix for PR106024 Actually, for release branches let's just avoid the lookup for the lambdas that are the problematic case and only make the bigger change on trunk. PR c++/106024 gcc/cp/ChangeLog: * parser.cc (cp_parser_lookup_name): Limit previous change to lambdas.