// PR c++/103714 // { dg-do compile { target c++20 } } template struct A { static const int i = I; template void f(A d = {}) requires (d.i != i) { f(); // { dg-error "no match" } } }; int main() { A<0> a; a.f<1>(); }