================ @@ -373,6 +373,7 @@ template <class T> void foo() {} // expected-note{{candidate ignored: not a memb } using ns::foo; template <class T> struct A { + // expected-error@+1{{friend function specialization cannot be defined}} ---------------- sdkrystian wrote:
Per my other comment, I think the right thing to do here is to diagnose friend function definitions after calling `ActOnFunctionDecl`... in this case we would emit the "no candidate function template was found for dependent friend function template specialization" diagnostic, but not "friend function specialization cannot be defined". https://github.com/llvm/llvm-project/pull/72863 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits