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

problem from HP unix Fortran to Intel fortran compiler

Intel_C_Intel
Employee
227 Views

just now I have problem when transfer the code from HP unix Fortran compiler platform to intel x86 when I use intel fortran compiler. such as :

---------------------
program main
integer i, i
print*,'hello'
end
--------------------
Intel compiler report errors because of the mutiple-declaration of i.
but HP compiler couldn't, since it's really a good feature for Intel compiler.
but I am wondering that is there any option to disable such a report and omit such error?
Thanks in advance

JUN

0 Kudos
1 Reply
Steven_L_Intel1
Employee
227 Views
There is no compiler option to ignore this programming error. We're aware that a few compilers allow this, but we have made a decision to always report the error. You should correct the code.
0 Kudos
Reply