Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28748 Discussions

pointer to 2D array in a derived type results in internal compiler error (C0000005)

vls
Beginner
845 Views

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.

 

0 Kudos
5 Replies
Ron_Green
Moderator
819 Views

we'll get a bug report.  thanks for sending this to us

0 Kudos
Xiaoping_D_Intel
Employee
802 Views

The error has been reproduced and escalated with a bug report. I will let you know when there is an update on it.


0 Kudos
vls
Beginner
624 Views

Is there an update?

Was that bug fixed in any latest compiler version, or not yet?

 

0 Kudos
Steve_Lionel
Honored Contributor III
616 Views

I don't get an error compiling that source in either ifort or ifx from the 2023.0.0 install.

0 Kudos
Xiaoping_D_Intel
Employee
571 Views

It has been fixed by the new oneAPI 2023.0 release.


0 Kudos
Reply