https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102792
--- Comment #2 from Fedor Chelnokov <fchelnokov at gmail dot com> --- Here is a valid code, accepted by other compilers, leading to the same ICE: ``` using V = decltype([](auto x) { x.f(); }); class A{ void f() {} public: friend constexpr auto V::operator()(auto) const; }; int main(){ V{}(A{}); } ``` Demo: https://gcc.godbolt.org/z/1ao7Enb96