Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C
Paolo Carlini 70c894ea64 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
2017-10-02 22:02:03 +00:00

11 lines
204 B
C

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