https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464
--- Comment #2 from Роман Санду ---
Here's a link to godbolt with the minimal reproducing test case:
https://godbolt.org/z/5PoYd3sPs
Note that the bug is present in both gcc trunk and gcc 12.2.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464
--- Comment #1 from Роман Санду ---
Created attachment 53796
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53796&action=edit
No bug with unqualified name
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107464
Bug ID: 107464
Summary: Expression error in qualified name lookup with lambdas
in unevaluated context
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: