- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a reproducer for the issue, greatly simplified from the full context where the issue was observed. Removing either "-g" or "-dyncom" results in no error, suggesting this error is caused by the combination of these options along with the subroutine Foo having alternate entry point "Foo_I".
Command: "ifx -g -dyncom "BLK_A" foo.F90 ice002.F90 -o ice002.out
Version: 2024.2.0 Build 20240602
Error: "error #5633: **Internal compiler error: segmentation violation signal raised ** "
ice002.F90
program ice002
implicit none
interface
subroutine Foo(x)
integer, intent(in) :: x
end subroutine
subroutine Foo_I
end subroutine
end interface
call Foo_I
call Foo(5)
end program
foo.F90
subroutine Foo(x)
implicit none
integer :: blk_a_y
common /BLK_A/ blk_a_y
integer, intent(in) :: x
blk_a_y = x + blk_a_y
write(*,*) "Foo: blk_a_y:", blk_a_y
return
entry Foo_I
blk_a_y = 100
write(*,*) "Foo_I: blk_a_y:", blk_a_y
return
end subroutine
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This builds fine in the upcoming 2025 ifx. I have tested it internally.
tmp$ ifx -g -dyncom "BLK_A" foo.f90 ice002.f90 -o ice002.out
ifx: remark #10440: Note that use of a debug option without any optimization-level option will turnoff most compiler optimizations similar to use of '-O0'
tmp$

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