// PR c++/99214 // { dg-do compile { target c++20 } } template struct A { template static void f() requires requires { T::fail; }; }; int main() { A::f(); // { dg-error "no match" } } // { dg-message "In substitution of '\[^\r\n\]* \\\[with U = char\\\]'" "" { target *-*-* } 0 }