File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ template<int ...N> void NoMissingSemicolonHereEither(struct S... [N]);
221221// expected-error@-1 {{pack indexing is a C++2c extension}} \
222222
223223
224+
224225// This must be at the end of the file; we used to look ahead past the EOF token here.
225226// expected-error@+1 {{expected unqualified-id}} expected-error@+1{{expected ';'}}
226227using
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ void h(typename T... [1]::type); // cxx11-warning {{pack indexing is a C++2c ext
4141
4242template <typename ... T>
4343void x (T... [0 ]); // cxx11-warning {{'T...[0]' is no longer a pack expansion but a pack indexing type; add a name to specify a pack expansion}} \
44+ // cxx11-warning {{pack indexing is a C++2c extension}} \
4445 // cxx26-warning {{pack indexing is incompatible with C++ standards before C++2c}}
4546
4647void call () {
You can’t perform that action at this time.
0 commit comments