From: Paolo Carlini Date: Mon, 2 Oct 2017 22:02:03 +0000 (+0000) Subject: re PR c++/79590 (ICE (internal compiler error) in nothrow_spec_p with generic lambda... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70c894ea64ba42591ee347a131408a59ca2c29bd;p=gcc.git re PR c++/79590 (ICE (internal compiler error) in nothrow_spec_p with generic lambda and `noexcept(noexcept(...))` expression) 2017-10-02 Paolo Carlini PR c++/79590 * g++.dg/cpp1y/lambda-generic-noexcept1.C: New. From-SVN: r253369 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e678265bdd0..aeaa357c2e5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-02 Paolo Carlini + + PR c++/79590 + * g++.dg/cpp1y/lambda-generic-noexcept1.C: New. + 2017-10-02 Paolo Carlini PR c++/79005 diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C new file mode 100644 index 00000000000..082aff9261d --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C @@ -0,0 +1,10 @@ +// PR c++/79590 +// { dg-do compile { target c++14 } } + +auto f = [](auto x) noexcept(noexcept(x)) { }; + +int main() +{ + [](auto x) noexcept(noexcept(x)) { } (0); + [](auto) noexcept(noexcept(0)) { } (0); +}