blob: 8f00a760d7ebe8c152c54ac975a2a8d1e1067be7 [file] [log] [blame]
// Verify we check associated constraints when resolving the address of a
// template-id.
// { dg-do compile { target c++20 } }
void id(auto) { }
template <typename>
int f() { return 0; }
template <typename T> requires requires { T::fail(); }
auto f() { T::fail(); }
int main() {
using U = decltype(&f<int>);
(void)&f<int>;
id(&f<int>);
}