================
@@ -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}}
----------------
sdkrystian wrote:

@erichkeane I suppose we don't want double-erroring for any of these 
https://godbolt.org/z/Wdo7bqe1v... if that is the case, perhaps we should 
postpone diagnosing friend function definitions until after we call 
`ActOnFunctionDecl`?

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

Reply via email to