- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all, I got this error while trying to compile a (syntactically incorrect) program,
prog.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** 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 prog.f90 (code 1)
This situation occurs if I declare an array of a derived type (see code attached), and then
try (incorrectly) to call one of its procedure bound subroutines.
The compiler crashes with the above mentioned error.
I'm sending two files necessary to reproduce this problem (prog.f90 and my_type.f90). Compilation command was: ifort -c my_type.f90 prog.f90. My system is Linux, ifort is
ifort (IFORT) 2021.4.0 20210910.
====== Files for reproducing the problem ===========
prog.f90
program myProg
use my_type
type(my_type_t) :: m(:) ! Array of my_type
call m%fun() ! BUG, it is incorrect, I know. The point is that the compiler crashes here.
end program myProg
my_type.f90
module my_type
type :: my_type_t
contains
procedure, public :: fun => my_type_fun
end type my_type_t
contains
subroutine my_type_fun(this)
class(my_type_t), intent(inout) :: this
end subroutine my_type_fun
end module my_type
========
Best regards
Williams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to reproduce your internal compiler error (ICE) with version 2021.4.0 and an internal version of the next compiler. I filed a bug for you, CMPLRIL0-34374. I'll let you know when I know more about its fix.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to reproduce your internal compiler error (ICE) with version 2021.4.0 and an internal version of the next compiler. I filed a bug for you, CMPLRIL0-34374. I'll let you know when I know more about its fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good news! There is no ICE when I compiled with the current release of ifort 2021.6.0 that is part of oneAPI 2022.2. Give it a try!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page