// PR c++/109160 // { dg-do compile { target c++20 } } template concept C = B; template struct X { }; template struct A { template auto V> static void f(); template auto V> static void g(X); template auto V> static inline int value; template auto V> struct D { }; }; int main() { A::f<0>(); A::f<0>(); // { dg-error "no match|constraints" } A::g(X<0>{}); A::g(X<0>{}); // { dg-error "no match|constraints" } bool v1 = A::value<0>; bool v2 = A::value<0>; // { dg-error "constraints" } A::D<0> d1; A::D<0> d2; // { dg-error "constraints" } }