| 1 |
// PR c++/101725 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
template<class T, bool V = requires (T t) { x(t); }> void f(); |
| 5 |
|
| 6 |
struct A { |
| 7 |
int m; |
| 8 |
void f(int a, int b = requires (int t) { a + m + t; }); |
| 9 |
}; |
| 10 |
|
| 11 |
void g(); |
| 12 |
static_assert(noexcept(requires { g(); })); |