https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102870

            Bug ID: 102870
           Summary: ICE: unexpected expression 'Is' of kind
                    template_parm_index
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <utility>

template<class...>
struct Tuple { };

template<int... Is>
using type = Tuple<std::make_index_sequence<Is>...>;

template <int... Is>
constexpr auto f() {
  Tuple<type<Is>>{};
}

int main() {
  f();
}

https://godbolt.org/z/MExMxcWGK

Reply via email to