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

ICE with -assume realloc_lhs

Arjen_Markus
Honored Contributor II
720 Views
Hello,

I am using Intel Fortran version 12.1.3 on Linux and with this program:

program lhs

integer, dimension(:), allocatable :: data

data = merge( (/2/), (/3/), data > 1 )

end program lhs

I get an ICE:

ifort -o lhs lhs.f90 -assume realloc_lhs

0_12459

: catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error.

compilation aborted for lhs.f90 (code 1)

(This is a trimmed down version of a program that actually does something useful ;))

Regards,

Arjen

0 Kudos
5 Replies
Steven_L_Intel1
Employee
720 Views
Thanks, Arjen. I have escalated this as issue DPD200181153.
0 Kudos
Arjen_Markus
Honored Contributor II
720 Views
You're welcome.

(I can work around it by not using the automatic reallocation feature)

Regards,

Arjen
0 Kudos
Steven_L_Intel1
Employee
720 Views
I expect this problem to be fixed in a release later this year.
0 Kudos
danielpollmann
Beginner
720 Views
Note: I have been able to resolve the below issue by using compiler version 12.3.174.


Hi Steve,

I have a very similar problem: for a simple test program, -assume realloc_lhs does the trick to allow for automatic allocation. For a more complex program, using multiple source files, however, an error very similar to Arjen's is returned, except with error code 0_12032. The version is 11.1.072 - could an update help? Is this error code sufficient to identify a possible workaround, or would I need to submit more information?

Thanks,

Daniel

P.S.: I am running the compiler on a university server, and I don't own a license personally.
0 Kudos
Steven_L_Intel1
Employee
720 Views
No, the error number is not sufficient. But 11.1 is now two versions old, and we have fixed many problems in the meantime. As you say you can use a newer compiler (that would be 12.0.3.174 I'd guess), then that's the solution.
0 Kudos
Reply