================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
+
+template <class T>
+struct A {
+ template <class U>
+ using E = U;
+
+ static E u; // expected-error {{declaration of variable 'u' with deduced
type 'E' requires an initializer}}
+};
+
+decltype(A<int>::u) a;
----------------
cor3ntin wrote:
Missing EOF - also, can we put that test in an existing file ?
`test/SemaCXX/alias-template.cpp` would be a good candidate
https://github.com/llvm/llvm-project/pull/174281
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits