From 70c894ea64ba42591ee347a131408a59ca2c29bd Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 2 Oct 2017 22:02:03 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C 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); +} -- 2.30.2