mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 15:11:04 +08:00
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:
parent
603841eb29
commit
70c894ea64
@ -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
|
||||
|
10
gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C
Normal file
10
gcc/testsuite/g++.dg/cpp1y/lambda-generic-noexcept1.C
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user