- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following example triggers an internal compiler error with ifx 2024.0.0 (but not with any ifort version).
subroutine foo
use,intrinsic :: iso_c_binding, only: c_funptr, c_f_procpointer
abstract interface
real function f(x) bind(c)
real, value :: x
end function
end interface
procedure(f), pointer :: fptr
contains
subroutine bar
type(c_funptr) :: funptr
! code to initialize funptr
call c_f_procpointer(funptr, fptr)
end subroutine
end subroutine
$ ifx -c intel-20231122.f90
#0 0x000000000232d5da
[...]
#28 0x00007f25c102a609 __libc_start_main + 137
#29 0x00000000020ab129
intel-20231122.f90: error #5633: **Internal compiler error: segmentation violation signal raised**
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@NCarlson. thank you for reporting this.
The good news is that your reproducer compiles just fine with an internal build of the next compiler. Look for that in April-ish.
As a workaround, compile that routine with -O0.
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