// PR c++/93467 // { dg-do compile { target c++20 } } template concept True = true; template struct S1 { template friend struct S2; // friend declaration for S2 }; S1 s; // instantiate S1 template struct S2; // another declaration for S2 template struct S3 { template friend struct ::S2; // a third declaration for S2 };