- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - this is similar to an issue we are working on already. The issue ID is DPD200151581.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This bug will be fixed in the next major release, scheduled for November.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page