================
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s
+
+template <template <typename> class C> struct S { // expected-note {{template 
is declared here}}
+    friend C(); //expected-error {{cannot specify deduction guide for template 
template parameter 'C'}}
----------------
Sirraide wrote:

I think we're getting very confused because this essentially looks like a 
friend-qualified constructor declaration (because `C` is a class name here), 
but I’m not sure where exactly we should best be rejecting this.

https://github.com/llvm/llvm-project/pull/223213
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to