// RUN: %clang_cc1 -std=c++20 -verify -emit-llvm-only %s template void Create(const void* = nullptr); template struct ObjImpl { template friend void ::Create(const void*); }; template void Create(const void*) { (void) ObjImpl{}; } int main() { Create<42>(); } // expected-no-diagnostics