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

program_name syntax

davidnz
Beginner
375 Views

In the past I have successfully compiled Fortran programs with a program_name beginning with a numerical character, e.g.

      program 2test

When I used that syntax today I encountered the following error message:

error #5082: Syntax error, found INTEGER_CONSTANT '2' when expecting one of : <IDENTIFIER>

What is the correct syntax for a program_name in the program statement?

What could explain a change in compiler behaviour?

Thanks for any advice.

Labels (1)
0 Kudos
1 Solution
JNichols
New Contributor I
344 Views
0 Kudos
1 Reply
JNichols
New Contributor I
345 Views
0 Kudos
Reply