// Verify pretty printing of class NTTP objects.
// PR c++/111471
// { dg-do compile { target c++20 } }
struct A { bool value; };
template
requires (V.value) // { dg-message {'\(V\).value \[with V = A\{false\}\]'} }
void f();
template struct B { static constexpr auto value = V.value; };
template
requires T::value // { dg-message {'T::value \[with T = B\]'} }
void g();
int main() {
f(); // { dg-error "no match" }
g>(); // { dg-error "no match" }
}