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

unending compile via F77 init within a Structure

Chris_Payne
Beginner
497 Views
Using 64-bit RHEL 5.4, Intel64 compiler version 11.1.072, compiler flag -c, the following program may never finish compiling. I gave it 5 CPU minutes. We have other programs that did not finish in a CPU hour.


subroutine lr()
implicit none

structure /st/
integer i/30/
end structure

record /st/ re(300000)

write (6,*) re(234543)
end

The workaround is to change field i to use Fortran 90 syntax. Specifically:

integer:: i = 30

The compiler then finishes in the expected time. We don't need a fix to the compiler, since this is trivial for us to work around. This posting is primarily to provide information to others that may encounter this problem.
0 Kudos
2 Replies
Xiaoping_D_Intel
Employee
497 Views
Thanks for reporting the problem. I will file a bug report on it and post its status here.

Thanks,
Xiaoping Duan
Intel Customer Support
0 Kudos
TimP
Honored Contributor III
497 Views
By the way, the original code wasn't Fortran 77; few compilers would have accepted it. It does appear that it should be flagged as non-standard syntax rather than hanging the compiler.
0 Kudos
Reply