Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

problem when run a easy program

sgalves
Beginner
549 Views

Hi,

I'm trying run the following easy program:

##################################
program principal

implicit none


!Parametros utilizados no gerador de numeros aleatorios
Integer,Parameter :: AMAG=843314861,BMAG=453816693

integer :: iseed_2

iseed_2=1125412284

print*,(AMAG*iseed_2)
print*,(AMAG*iseed_2),BMAG
print*,(AMAG*iseed_2)+BMAG

end program principal

##################################
It's compiled whith

ifc -C -i_dynamics prog.f90

the following is the output

##################################
1718931468
1718931468 453816693


Input/Output Error 401: Unassigned variable

In Procedure: main program
At Line: 15

Statement: List-Directed WRITE
Unit: 6
Connected To: Stdout
Form: Formatted (contains List-Directed records)
Access: Sequential
Records Read : 0
Records Written: 2

Current I/O Buffer:


!


Diagnostics Entered From MAIN PROGRAM Line 15

End of diagnostics
##################################

What is going wrong?

Thank you.
 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
549 Views
I think this is a compiler bug. -C run-time checks are pretty flaky, to be honest...

Steve
0 Kudos
Reply