1 // { dg-options "-std=c++17 -fconcepts" }
4 concept bool One() { return sizeof(T) >= 4; }
7 concept bool Two() { return One<T>() && sizeof(T) >= 8; }
9 // Check that there is no ecsacpe hatch
10 template<Two T> struct S4 { };
11 template<One T> struct S4<T> { }; // { dg-error "does not specialize" }
13 struct one_type { char x[4]; };
15 // Constraints are checked even when decls are not instantiatied.
16 S4<one_type>* x4b; // { dg-error "constraint|invalid" }