// { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template concept C = __is_class(T); struct X { }; template struct Base { Base(double) requires C { } }; struct Ok1 : Base { using Base::Base; }; struct Err1 : Base { using Base::Base; }; template struct Generic : Base { using Base::Base; }; int main() { Ok1 x1(0.0); Err1 x2(0.0); // { dg-error "no matching" } Generic x3(0.0); Generic x4(0.0); // { dg-error "no matching" } }