Array subscripts in Fortran202x

In section 8 of the new features of Fortran 202x, array subscripts could be written as

integer :: idx(2)
idx = [4, 7]
arr(@idx) ! Equivalent to arr(4, 7)

I have no idea compiler-wise how hard it is to implement, but will coindices apply to the same rule? It will be nice if we can do something like the following:

integer :: idx(2), coidx(2)
idx = [4, 7]
coidx = [1, 8]
arr(@idx)[@coidx] ! Equivalent to arr(4, 7) [1, 8]
2 Likes