[clang] [Clang] Fix crash on subscripting a complete matrix subscript expression (PR #207317)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 03:38:29 PDT 2026
================
@@ -228,3 +228,8 @@ float *address_of_element(sx5x10_t *a) {
return &(*a)[0][1];
// expected-error at -1 {{address of matrix element requested}}
}
+
+void test_triple_subscript(sx5x10_t a) {
+ float v13 = a[0][0][0];
+ // expected-error at -1 {{subscripted value is not an array, pointer, or vector}}
+}
----------------
farzonl wrote:
Add a new line
https://github.com/llvm/llvm-project/pull/207317
More information about the cfe-commits
mailing list