// { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template concept C = __is_class(T); template concept D = C and __is_empty(T); struct S1 { } s1; struct S2 { int n; } s2; template void f1(T x) { } template void f1(T x) { } int main() { f1(0); // { dg-error "matching" } }