// PR c++/104527 // { dg-do compile { target c++20 } } template concept is_same = __is_same(T, U); template struct A { template requires requires { { 0 } -> is_same; } struct B {}; template requires requires { { 1 } -> is_same; } static void f(); }; A::B<> a1; A::B<> a2; // { dg-error "constraint" } int main() { A::f(); A::f(); // { dg-error "no match" } }