c++: simpler fix for PR106024
authorJason Merrill <jason@redhat.com>
Fri, 1 Jul 2022 15:02:54 +0000 (11:02 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 1 Jul 2022 15:42:34 +0000 (11:42 -0400)
commite748398b3ef6412ef35b85ef6b0893809aeb49cd
tree218cb07c14a65f8aad29dd8f2c29738e97c337f2
parent962e7f0803f163f9cf44d64a2e199935d3f361fe
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.
gcc/cp/parser.cc