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

ICE: modulo of array

Alexis_R_
New Contributor I
833 Views
Hi there,

Sorry if this isn't the correct place to report a bug.

I get a catastrophic ICE when compiling this code:
[cpp]program testmodulo

real, allocatable :: array(:)

allocate(array(3))

array = 11.2

array = modulo(array,10.0)

end program testmodulo[/cpp]
The compilation command is:
[cpp]ifort -I. -Isrc/   -fpp  -warn all -gen-interfaces -warn interfaces -check all -assume realloc_lhs -O0 -g -FR -c -o main.o /gusr/alr99/cluster/workspace/helloworld/main.f90[/cpp]
and I am using ifort 11.1.046

This is the error I get:
[cpp]0_12032

: 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.[/cpp]
0 Kudos
2 Replies
Ron_Green
Moderator
833 Views
It is perfectly fine to report bugs here.

This bug is due to the -assume realloc_lhs option. If you remove this option then the code will compile.

I'll start a bug report. Issue number is DPD200139107.

ron
0 Kudos
Ron_Green
Moderator
833 Views
this bug is fixed in the latest 11.1 and Composer XE 2011 (aka v12) compilers.
ron
0 Kudos
Reply