https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108414
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |c++-lambda, rejects-valid --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > using nth_element_t = typename decltype([]<typename T>(const indexed<I, > T>&){return std::type_identity<T>{};}(make_indexer<Ts...>()))::type; There are some known issue with lambda inside a decltype which seems like might be causing issues here ...