================ @@ -4,7 +4,8 @@ void f(T); template<typename T> struct A { - // expected-error@+1{{cannot declare an explicit specialization in a friend}} + // expected-error@+2{{cannot declare an explicit specialization in a friend}} + // expected-error@+1{{friend function specialization cannot be defined}} ---------------- erichkeane wrote:
We probably shouldn't be double-erroring on all of these. In this case, the existing error seems preferential. 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