[Bug c++/79590] ICE (internal compiler error) in nothrow_spec_p with generic lambda and `noexcept(noexcept(...))` expression

vittorio.romeo at outlook dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 12 13:55:00 GMT 2017


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

--- Comment #2 from Vittorio Romeo <vittorio.romeo at outlook dot com> ---
This is still present. Here are some more examples:



int main()
{
    [](auto x) noexcept(noexcept(x)) { } (0);
}

<source>:3:40: internal compiler error: in nothrow_spec_p, at cp/except.c:1159
     [](auto x) noexcept(noexcept(x)) { } (0);
                                        ^



int main()
{
    [](auto) noexcept(noexcept(0)) { } (0);
}

<source>: In function 'int main()':
<source>:3:38: internal compiler error: in nothrow_spec_p, at cp/except.c:1159
     [](auto) noexcept(noexcept(0)) { } (0);
                                      ^


More information about the Gcc-bugs mailing list