Hi Andre, Jerry already OK'ed your patch, but:
Am 05.03.25 um 15:34 schrieb Andre Vehreschild:
This fixes the PR, but not really the problem, because when say a obj(i)%arr(2:5) => obj(i)%arr(1:4) is done we run into the same issue. I don't have a solution for that error. It might be needed to prevent generating the parm.NN variable for the lhs, because that is mostly useless there. (Or I don't understand (yet) how to use it).
can you explain where you do see an issue here? A pointer assignment in the way you describe seems perfectly legal Fortran and works here. If we are missing anything, would you please open a PR with more details? Thanks, Harald