A pointer to a 2D array like below results in internal compiler error (C0000005).
The latest version of the Intel Fortran 2022 (for windows) was used.
[ version 22.0.0066.16, Package ID: w_oneAPI_2022.1.0.256]
XMTRN => thisFP%MatFP(:)%XMDEN(1,2) ! compiler error here
The real code is part of a large package. I've isolated a "problem" line of the code and
made a "toy example" attached.
Note that if (in this example) the array (XMDEN) is declared as 1-dimensional the code compiles.
The same large package was built before using older Intel Fortran versions from 2012 to 2018.
Using Intel Fortran 2022 latest version there are 3 files that result in "internal compiler error (C0000005)". I suppose the root cause is the same in all 3 cases.