New Issue: GPU: Internal Error for Slicing Multidimensional Arrays

20181, "ShreyasKhandekar", "GPU: Internal Error for Slicing Multidimensional Arrays", "2022-07-08T19:05:18Z"

Summary of Problem

With CHPL_LOCALE_MODEL=gpu we get error with reading from or writing to slices of multidimensional arrays.
At compile time we get the following error:

internal error: Malformed PRIM_GET_MEMBER_* [optimizations/gpuTransforms.cpp:524]

Steps to Reproduce

Source Code:

var a = [1..10, 1..10];
for i in a.dim(0) {
    /// Get one row
    var x = a[i, 1..10];
}

This is similar to GPU: "Malformed PRIM_GET_MEMBER" error for programs with forall over multi-dimensional domain · Issue #19981 · chapel-lang/chapel · GitHub