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

Tokens may not be continued across lines

qolin
Novice
723 Views

Anyone seen this?

We use Ifort 9.1 on Linux, and lately on winXP as well. The Windows compiler (and good-old-CVF) has no trouble with the source, but the same source on linux throws up this error. Offending statement is 130 characters wide so what follows will appear mangled because of unwanted line-wrap. In addition this forum's text formatter has replaced runs of many spaces with just one space. Anyway here it is:

830 format( &

3X,' Dist. Elev. Horiz. Vert. Pres. Temp. Mean Pressure ',a4,' ',a6,' ',a6,' Densities Slug Flow'/ &

3X,' Angle Devn. Vel. 'A8, ' Flow ',a6,' ',A8, ' Number Pattern'/ &

3X,' ',A6,' ',A7, ' (deg) (deg) ',A6,4x ,A3,' ',A7,' Elev. Frictn. ' ,A8, A8,' Liquid Gas (PI-SS)')

The compiler says:

fortcom: Error: pr_prim.f90, line 196: Tokens may not be continued

across lines

3X,' Angle Devn. Vel. 'A8,

' Flow ',a6,' ',A8, ' Number Pattern'/ &

^

fortcom: Error: pr_prim.f90, line 197: Tokens may not be continued

across lines

3X,' ',A6,' ',A7, ' (deg) (deg) ',A6,4x ,A3,' ',A7,' Elev.

Frictn. ' ,A8, A8,' Liquid Gas (PI-SS)')

^

The compiler is objecting to the second continuation line, the '^' is in column 1. The '3X' starts in column 1. The '&'s at the end of lines are the last characters on the lines, they are not followed by any spaces. There are no embedded tabs in the source.

AHA! just noticed the file attach button in the Options tab. see attached file pr_prim.f90, line 194.

Qolin

0 Kudos
4 Replies
Steven_L_Intel1
Employee
723 Views
There were some issues with format parsing in earlier versions - the current version doesn't show a problem for me (once I get something I can compile by removing dependencies on include files and modules.)
0 Kudos
qolin
Novice
723 Views

Ok Thanks Steve, turns out we are using 9.0 on linux not 9.1. We have 9.1 available so I'll get the systems guys to start using it.

Qolin

0 Kudos
Steven_L_Intel1
Employee
723 Views
Ok - just make sure it is current (9.1.037 (I think) or later.)
0 Kudos
jimdempseyatthecove
Honored Contributor III
723 Views

Two suggestions from the peanut gallary.

On your continuation line you have

3X,' Angle Devn. Vel. 'A8,...

I would suggest inserting a comma between the literal string and the A8.

Also, I would suggest using the & prefex on the continued lines:

First part of line &
& Second part of line &
&Last part of line.

Jim Dempsey

0 Kudos
Reply