- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel ifort 2021.4 cannot compile the following module and submodule, where the procedure interface is separated from the implementation.
module lower_bound
interface lower
module subroutine test_lower(array, indices)
integer, intent(inout), allocatable :: array(:)
integer, intent(in), contiguous :: indices(lbound(array,1):)
end subroutine test_lower
end interface
end module lower_bound
submodule (lower_bound) smod
contains
module procedure test_lower
end procedure
end submodule smod
Note that the issue appears to be entirely due to the specification of the lower bound for the input argument INDICES: indices(lbound(array,1):).
Given the nature of the error message:
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.
this appears to be a compiler bug unless someone can prove it otherwise.
To reproduce the bug, compile with
ifort lower_bound.f90 lower_bound@smod.f90 -c
gfortran 10.3 has no problem compiling and running the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, definitely a bug. We will create a bug report. Thank you for sending this in, timely too since I'm reviewing open issues against submodules. it's been one of my interest areas.
ron
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, definitely a bug. We will create a bug report. Thank you for sending this in, timely too since I'm reviewing open issues against submodules. it's been one of my interest areas.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been escalated to engineering CMPLRIL0-34555
Thanks for reporting the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fantastic, Thank you.

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