[Bug c++/82882] [8 regression] ICE Segmentation fault

ville.voutilainen at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 14 11:02:00 GMT 2018


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

--- Comment #11 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Also happens with a member function of a class template, thus:

template<typename = int>
struct X {
void f(const char* a =
     ([]() noexcept -> const char* { 
        enum { Size = 42 - 1 }; 
        return ""; 
     }()));
};

void g()
{
        X<int>().f();
}


More information about the Gcc-bugs mailing list