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
Segmentation fault: template<class> struct A { template<int... Is> static constexpr auto c = [] { return Is; }(); using type = decltype(c<0>); }; #include<tuple> int main() { typename A<std::tuple<int>>::type x; } https://godbolt.org/z/EbdanW16d
I think they are two different bugs here, the first one was working (no ICE/confused by earlier errors, bailing out) in GCC 7.5.0 while the second one is was working in 4.9.1.
GCC 9 branch is being closed
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
GCC 10 branch is being closed.
Note the first example in comment #0 was fixed in GCC 13. The one in comment #1 still fails on the trunk.