gcc/testsuite/g++.dg/cpp0x/noexcept90.C
raw| 1 | // PR c++/118190 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct S { |
| 5 | template<typename T> |
| 6 | struct S5 { |
| 7 | void f1() noexcept(noexcept(i)) { } |
| 8 | int i; |
| 9 | }; |
| 10 | S5<int> s5; |
| 11 | static_assert (noexcept(s5.f1()), ""); // { dg-error "not available until end of class|static assertion failed" } |
| 12 | }; |