blob: c0372a6096b2892c9353882d44e70698f52ac8dc [file] [log] [blame]
// PR c++/95735
// { dg-do compile { target concepts } }
template <auto F>
requires requires { F(); }
bool v{};
void f() {
int x;
static_assert(v<[&] { x++; }>); // { dg-error "not a constant expression" }
}