https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105667
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase without the need for tuple includes: template<auto f> struct h {typedef int type;}; template<int I, class... Types> struct t{}; template<typename Ts> struct Example { using Types = typename h<[] <typename T> () {}>::type; static void crash() { auto f = [&] <int i=0> () { using type = t<0, Types>(); }; f(); } }; int main() { Example<int>::crash(); return 0; }