================
@@ -751,3 +751,13 @@ struct A {
 static_assert(__is_trivial(A), "");
 #endif
 } // namespace cwg1496
+
+namespace cwg1417 { // cwg1417: 24
+  template<typename T> struct S {
+    typedef T F;
+    typedef T *P; // expected-error {{pointer to function type 'void () const' 
cannot have 'const' qualifier}}
+                  // expected-note@#cwg1417-s {{in instantiation of template 
class 'cwg1417::S<void () const>' requested here}}
+    typedef T &R; // expected-error {{reference to function type 'void () 
const' cannot have 'const' qualifier}}
----------------
AZero13 wrote:

Fixed!

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

Reply via email to