The feature called `const_indexing` allows the indexing operation to be performed while calculating a true constant like an array length. See the implementation at #25570