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

catastrophic error using move_alloc

Ben_Lauwens
Beginner
514 Views
Hello

Following code results in a catastrophic error:

program test20100518
implicit none

class(*), allocatable :: first
class(*), allocatable :: second
allocate (first, source = 150)
call move_alloc (first, second)
deallocate (second)
end program

source /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64; ifort -c ../src/test/test20100518.f90
../src/test/test20100518.f90(7): 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.
call move_alloc (first, second)
--------^
compilation aborted for ../src/test/test20100518.f90 (code 3)

Replacing class (*) with integer allows a clean build and run.

Ben
0 Kudos
2 Replies
Steven_L_Intel1
Employee
514 Views
Thanks - this is similar to an issue we are working on already. The issue ID is DPD200151581.
0 Kudos
Steven_L_Intel1
Employee
514 Views
This bug will be fixed in the next major release, scheduled for November.
0 Kudos
Reply