- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The calling the intrinsic function date_and_time with an allocated integer pointer causes a segmentation fault within ifort. Specifically, the sandbox code
program test
implicit none
integer(4), dimension(:), pointer :: x
allocate(x(8))
call date_and_time(values=x)
end program test
yields the compile-time error
fortcom: Severe: **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.
I am running ifort v10.0.023 on Fedora Core. Replacing "pointer" by "allocatable" resolves the segmentation fault.
program test
implicit none
integer(4), dimension(:), pointer :: x
allocate(x(8))
call date_and_time(values=x)
end program test
yields the compile-time error
fortcom: Severe: **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.
I am running ifort v10.0.023 on Fedora Core. Replacing "pointer" by "allocatable" resolves the segmentation fault.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce this in 10.1. I encourage you to submit it to Intel Premier Support - if you do, please reference T81692-CP

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