Intel® Fortran compiler – Option -extend-source not ignored for .F90 source files

Reference Number : DPD200138566

Version : 11.0, 11.1

Operating System : Linux*, Mac OS X* / IA-32, Intel® 64, IA-64

Problem Description : 

Beginning with the 11.x release, the Intel Fortran compiler does not correctly ignore the -extend-source (and other variants) for free-form source files named with the .F90 extension. The option is correctly ignored for source files named with the lower-case .f90 extension.

The mishandling of the option will cause erroneous syntax errors for any Fortran source statement that extends beyond the designated statement field length specified with the -extend-source option.

The example below demonstrates the extraneous errors issued when using -extend-source 132 with the sample program containing an OPEN statement extending beyond 132 characters.

Given the following sample.F90 source:

program sample


if(ios_100/=0) then
   print *,"File open failed"


$ ifort -V -c -extend-source 132 sample.F90
Intel® Fortran Intel® 64 Compiler Professional for applications running on Intel® 64, Version 11.1 Build 20090630 Package ID: l_cprof_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

Intel® Fortran 11.1-2536
sample.F90(3): error #5120: Unterminated character constant
sample.F90(4): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,
compilation aborted for sample.F90 (code 1)

Resolution Status : This defect is fixed in the Intel Fortran Compiler Professional Edition 11.1 update, 11.1.056 (Linux). Since -extend-source is not intended to apply to free-form source files, a work around this current defect is to simply avoid usage with any .F90 source files. Another work around to dropping the -extend-source (or variant like -132) option is to rename the file to use .f90 (lower-case) and add -fpp.

[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, completeness or utility of any information on this site. Intel may make changes to the information or the site at any time without notice. Intel makes no commitment to update the information at this site. ALL INFORMATION PROVIDED ON THIS WEBSITE IS PROVIDED "as is" without any express, implied, or statutory warranty of any kind including but not limited to warranties of merchantability, non-infringement of intellectual property, or fitness for any particular purpose. Independent companies manufacture the third-party products that are mentioned on this site. Intel is not responsible for the quality or performance of third-party products and makes no representation or warranty regarding such products. The third-party supplier remains solely responsible for the design, manufacture, sale and functionality of its products. Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. *Other names and brands may be claimed as the property of others.]
For more complete information about compiler optimizations, see our Optimization Notice.

1 comment


Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.