gfortran doesn't recognize .F90 and .F95 files anymore

Martin Reinecke martin@MPA-Garching.MPG.DE
Tue Aug 2 12:31:00 GMT 2005


Hi,

while trying to find out if But 18108 is now fixed, I noticed that the current
gfortran does not recognize source files with the extension ".F90" or ".F95"
any more. Traditionally they are used for files adhering to Fortran90 or 95,
which need to be preprocessed.
Trying to compile the simple file

program test
end

under the name "test.F90" with an additional flag didn't work:

~/tmp>gfortran -fsecond-underscore test.F90
cc1: warning: command line option "-fsecond-underscore" is valid for F95 but not for C

So for some reason gfortran thinks that it is compiling C code.

Some time ago this definitely worked correctly. Should I file a bug report?

Cheers,
   Martin



More information about the Fortran mailing list