// { dg-do compile { target c++20 } } // { dg-additional-options "-fconcepts" } template concept C = __is_same_as(X, int) || __is_same_as(X, long); template struct Ax {}; int main() { Ax a; Ax b; // { dg-error "template constraint failure" } return 0; }