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.

Severe: Statement too long

meow
Beginner
1,176 Views

Hi, I get this error while compiling with fortran 10:

Severe: Statement too long

Due to the nature of my program is not feasible to break the statement in shorter parts. What can I do? Is there a way to increase the length of statements taken by fortran?

Pablo

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,176 Views
No, this is not user-configurable. Your program must be way outsude the limits set by the standard.
0 Kudos
anthonyrichards
New Contributor III
1,176 Views
Iam surelynotthe only one to be curious to see this standard-breaking statement? How many continuation lines are there? Compaq VF (my compiler) allows up to 511 continuation lines. How about IVF?
0 Kudos
Steven_L_Intel1
Employee
1,176 Views
The same at 511. I believe the compiler accepts source lines around 1400 characters each. I notice that the error reporting is not too many continuations.

Has an example source file been submitted to Intel Premier Support? I had heard that a report of a similar or perhaps the same error was submitted last week but with no example.
0 Kudos
Steven_L_Intel1
Employee
1,176 Views
I have seen the source now; it seems to have been created by a program generator. The statement in question has 51 continuation lines but each source line is about 2200 characters on average with some as high as 2265, and it is a very dense expression with lots of tokens on each line that overflows a compiler internal limit, already extremely high, on statement complexity.

I don't know yet what the developers will respond, but my advice is to change the program generator so that it creates more reasonable source code, as this particular source, at least, would choke many compilers that I know of.
0 Kudos
Reply