Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept59.C
blob1dc826d3111a33d1967c8729f159f44654e0ef6e
1 // PR c++/90748
2 // { dg-do compile { target c++11 } }
4 template <class ...Ts> class A
6   constexpr bool e () { return true; };
7   bool f (int() noexcept(this->e())); // { dg-error "this" }
8   bool g (int() noexcept(e()));       // { dg-error "without object" }
9 };
10 A<> b;