llvm
ee82fc0c - [Clang] Fix crash on subscripting a complete matrix subscript expression (#207317)

Commit
7 days ago
[Clang] Fix crash on subscripting a complete matrix subscript expression (#207317) Subscripting a complete MatrixSubscriptExpr (which has scalar type) caused an assertion failure in ActOnArraySubscriptExpr because the code unconditionally asserted isIncomplete() on any MatrixSubscriptExpr base. Fix by guarding the matrix subscript path with an isIncomplete() check, allowing complete matrix subscript expressions to fall through to the standard subscript handling, which emits an appropriate diagnostic. Fixes #203163
Author
Parents
Loading