// CWG 2918 makes this OK // { dg-do compile { target c++20 } } template struct X { static void f(short) requires B; // #1 static void f(short); // #2 }; void test() { auto x = &X::f; // OK, deduces void(*)(short), selects #1 auto y = &X::f; // OK, deduces void(*)(short), selects #2 }