[Bug c++/102792] Internal compiler error if define lambda::operator() as friend

2021-10-15 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102792 --- Comment #2 from Fedor Chelnokov --- 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) co

[Bug c++/102792] Internal compiler error if define lambda::operator() as friend

2021-10-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102792 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill