[Bug c++/105667] Internal compiler segmentation fault

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 19 23:34:55 GMT 2022


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;
}


More information about the Gcc-bugs mailing list