I am using Intel Visual Fortran 64 Compiler XE, Version 184.108.40.206 Build 20110427 from a Windows 7 command line.
Here is some example code I am trying to compile:
PROGRAM HELLO ! This is a comment C This is also a comment c This is also a comment PRINT *,"Hello, world." ! An inline comment PRINT *, & "This is the new continuation type." PRINT *, & "This is the old continuation type." END PROGRAM HELLO
I have a very large code base with mixed fixed and free syntax in both comments and continuation syntax. A co-worker is using a different Intel compiler (Version 11.1 Build 20100401 in Linux), and is able this mixed syntax without a problem, but I cannot.
I have found that if I use the /free option, I get syntax errors on both the comments that do not start with "!" and the old continuation syntax. If I use the /fixed option, it seems to be OK with both old and new comment types, but chokes on the F90 continuation syntax, with the "&" at the end of the line to continue.
Any advice on how I can get this code to compile without changing it? We're talking tens of thousands of lines of legacy code, so I'm trying to avoid that.