c++: ICE with noexcept in class in member function [PR96623]
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept64.C
1 // PR c++/96623
2 // { dg-do compile { target c++11 } }
3
4 constexpr int x = 0;
5 struct A {
6 int a1;
7 void foo (int p) {
8 int foovar;
9 struct B {
10 int b1;
11 void bar1 () noexcept(x);
12 void bar2 () noexcept(noexcept(this->b1));
13 void bar3 () noexcept(noexcept(this->b2));
14 void bar4 () noexcept(noexcept(a1));
15 void bar5 () noexcept(noexcept(a2));
16 void bar6 () noexcept(noexcept(b1));
17 void bar7 () noexcept(noexcept(b2));
18 void bar8 () noexcept(noexcept(foovar));
19 void bar9 () noexcept(noexcept(p));
20 int b2;
21 };
22 }
23 int a2;
24 };