You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static CONST auto f = [] { return T::template g<s>; };
421
+
// expected-note@-1 {{in instantiation of static data member 'dependent_static_var_template::GH55872::t::g' requested here}}
422
+
// expected-note@-2 {{while substituting into a lambda expression here}}
423
+
};
424
+
425
+
struct t {
426
+
template<typename T>
427
+
static CONST auto g = [] { return T::template f<t>; };
428
+
// expected-error@-1 {{the type of variable template specialization 'f<dependent_static_var_template::GH55872::t>' declared with deduced type 'const auto' depends on itself}}
429
+
// expected-note@-2 {{while substituting into a lambda expression here}}
430
+
};
431
+
432
+
void test() { s::f<t>()(); } // expected-note {{in instantiation of static data member 'dependent_static_var_template::GH55872::s::f' requested here}}
auto GH51347 = GH51347<T>; // expected-error {{variable template 'GH51347' declared with deduced type 'auto' cannot appear in its own initializer}}
499
+
500
+
template <class T, class... Ts>
501
+
auto a = [] {
502
+
using U = T;
503
+
a<U, Ts...>; // expected-error {{variable template 'a' declared with deduced type 'auto' cannot appear in its own initializer}}
504
+
};
505
+
506
+
template <int...> int b;
507
+
template <int I>
508
+
auto b<I, I * 2, 5> = b<I, I * 2, 5l>; // expected-error {{variable template partial specialization 'b<I, I * 2, 5>' declared with deduced type 'auto' cannot appear in its own initializer}}
509
+
template <> auto b<0, 0, 0> = b<0, 0, 0>; // expected-error {{variable template explicit specialization 'b<0, 0, 0>' declared with deduced type 'auto' cannot appear in its own initializer}}
0 commit comments