https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108414
--- Comment #2 from Евгений Лисицын <amewo22370 at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > > 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 ... interesting that 'typedef' and 'using' have different behavior