| 1 |
// PR c++/90748 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <class ...Ts> class A |
| 5 |
{ |
| 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; |