// PR c++/94490 // { dg-do compile { target c++14 } } template constexpr int fake_tuple_size_v = 3; template struct intseq {}; // So that it compiles with clang++. #if __has_builtin(__make_integer_seq) using size_t = decltype(sizeof(1)); template using _IdxTuple = intseq<_Indices...>; template using genseq = __make_integer_seq<_IdxTuple, size_t, N>; #else template using genseq = intseq<__integer_pack(N)...>; #endif template> struct arith_result { }; template auto Mul(const T&) { return [](auto) { return arith_result> { }; }(0); } auto x = Mul(0);