https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106086
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2022-07-14 Status|UNCONFIRMED |NEW CC| |ppalka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- Reduced C++17 ICE-on-valid testcase: template<class> struct foo { int operator()(...) const; }; template<class T> struct bar : foo<T> { auto operator()() const { return [&](auto x) { return foo<T>::operator()(decltype(x){}); }; } }; bar<int> b; int i = b()(0);