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.
29286 Discussions

problem from HP unix Fortran to Intel fortran compiler

Intel_C_Intel
Employee
347 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
347 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