Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

date_and_time bug

kkroenlein
Beginner
347 Views
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.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
347 Views
I can reproduce this in 10.1. I encourage you to submit it to Intel Premier Support - if you do, please reference T81692-CP
0 Kudos
Reply