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

CompilerErrorsAndWarnings

clinecraigue
Beginner
834 Views
Hello,
I have already posted this question on my premier website, however, I don't know if they will get back to me today, so rather than waste the entire weekend, here it is again:

I'm trying to test some Fortran95 code. We are using ifort as the compiler and we are getting warning messages like #5112: Extension to FORTRAN-90: tab formatting
enddo mainDo
It doesn't like the label on the enddo statment.
1. We want Fortran95. Should we be using "ifort"
2. There is nothing wrong with the label and other warnings like: Tab Formatting, what ever that is.
3. Where do I get an explaination of the Warning Number
4. It complains of including Flag: -i64em Which we understand to mean, use our 64 bit computer.
5. I don't like the tone of the warning: Extension to Fortran90. We don't want Fortran90. We want Fortran95, to which our code is not some Extension of an older version of Fortran

Thanks,
Sam
0 Kudos
1 Solution
Steven_L_Intel1
Employee
834 Views
Tab formatting is an extension to all variants of Fortran. If you are using ifort 11.1, then the default behavior if you ask for standards warnings is to warn for extensions to Fortran 2003. You can change this with the -std switch. Some of the diagnostics have the Fortran version hard-coded - this may be one of them. If you want your program to be standard-conforming, use spaces and not tabs.

We are in the process of documenting most of the compiler diagnostics, but this hasn't been published yet. In the future, you will be able to search Intel Software Network for the message number or keywords.

-i64em is not a recognized option in ifort. If you want to use the Intel 64 (x64) compiler, you must specify that when "source"ing the compiler, for example:

source /opt/intel/Compiler/11.1/038/bin/ifortvars.sh intel64

View solution in original post

0 Kudos
1 Reply
Steven_L_Intel1
Employee
835 Views
Tab formatting is an extension to all variants of Fortran. If you are using ifort 11.1, then the default behavior if you ask for standards warnings is to warn for extensions to Fortran 2003. You can change this with the -std switch. Some of the diagnostics have the Fortran version hard-coded - this may be one of them. If you want your program to be standard-conforming, use spaces and not tabs.

We are in the process of documenting most of the compiler diagnostics, but this hasn't been published yet. In the future, you will be able to search Intel Software Network for the message number or keywords.

-i64em is not a recognized option in ifort. If you want to use the Intel 64 (x64) compiler, you must specify that when "source"ing the compiler, for example:

source /opt/intel/Compiler/11.1/038/bin/ifortvars.sh intel64

0 Kudos
Reply