// { dg-do compile { target c++20 } } template struct A { template requires (sizeof(T) == 1) static void f(U); template requires (sizeof(T) == 2) static void f(U); void g() { f(42); } };