https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103952
Bug ID: 103952 Summary: ICE: in cp_finish_decl, at cp/decl.c:7933 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: --- 12 regression: template<class> struct A { template<int... Is> struct B { static constexpr auto c = [] { return Is; }(); using type = decltype(c); }; }; #include<tuple> int main() { typename A<std::tuple<int>>::B<0>::type x; } https://godbolt.org/z/fxvKWP4qM