// { dg-do compile { target c++20 } } template concept C = __is_class(T); template concept D = C and __is_empty(T); template requires C class X> struct S { }; template requires true struct T0 { }; template requires D struct T1 { }; S x3; // { dg-error "constraint mismatch|invalid type" } S x4; // { dg-error "constraint mismatch|invalid type" } int main() { }