// PR c++/122550 // { dg-do compile { target c++20 } } struct Hasher; template concept C = true; template void add(Hasher&, T); struct Hasher { template friend void add(Hasher& hasher, T integer) {} }; int main() { Hasher h; add(h, 0); }