re PR c++/79590 (ICE (internal compiler error) in nothrow_spec_p with generic lambda and noexcept(noexcept(...)) expression)

2017-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/79590
	* g++.dg/cpp1y/lambda-generic-noexcept1.C: New.

From-SVN: r253369
This commit is contained in:
Paolo Carlini 2017-10-02 22:02:03 +00:00 committed by Paolo Carlini
parent 603841eb29
commit 70c894ea64
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79590
* g++.dg/cpp1y/lambda-generic-noexcept1.C: New.
2017-10-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/79005

View File

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