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
}... // expected-error {{does not contain any unexpanded}}
37
+
}... // expected-error {{pack expansion does not contain any unexpanded parameter packs}}
38
38
);
39
39
}
40
40
@@ -43,7 +43,7 @@ static_assert(x<1,2,3>([](int a, int b, int c) { return 100 * a + 10 * b + c; })
43
43
static_assert(x<1,2,3>([](int a, int b, int c) { return100 * a + 10 * b + c; }) == 124); // expected-error {{failed}} \
44
44
// expected-note {{evaluates to '123 == 124'}}
45
45
46
-
template<int ...a> constexprauto y = [z = a...] (auto F) { returnF(z...); }; // expected-error {{must appear before the name of the capture}}
46
+
template<int ...a> constexprauto y = [z = a...] (auto F) { returnF(z...); }; // expected-error {{ellipsis in pack init-capture must appear before the name of the capture}}
47
47
static_assert(y<1,2,3>([](int a, int b, int c) { return100 * a + 10 * b + c; }) == 123);
48
48
static_assert(y<1,2,3>([](int a, int b, int c) { return100 * a + 10 * b + c; }) == 124); // expected-error {{failed}} \
0 commit comments