We need to do EXPR_LOCATION (array2) and then issue the error....note: original mismatching rank at: array[:][:] = array2[:];
>> ^ Yes.
Or something similar... the note can be emitted with inform(). So you need to save the original rank location to emit the note....and we take the location information in "loc" and print that out in inform? Did I get it right?
Yes. Provided "loc" is the location of the original location.