[PATCH] D149637: [Clang] Correctly expand pack in binary subscript expression.

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 08:06:15 PDT 2023


shafik accepted this revision.
shafik added a comment.

LGTM, other than my comment on the diagnostic wording



================
Comment at: clang/test/SemaCXX/cxx2b-overloaded-operator.cpp:101
+  int arr[] = {1, 2, 3};
+  return arr[Is...]; // expected-error 2{{type 'int[3]' does not provide a subscript operator}}
+}
----------------
The diagnostic is not great.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149637/new/

https://reviews.llvm.org/D149637



More information about the cfe-commits mailing list