Strict fortran77 compiler? (or gfortran compiler flag)

Is there any way to get gfortran to reject f95 additions to Fortran 77? If not, is there another f77 compiler for unix systems?

I tried using the -std=legacy flag, but it seems to only remove warnings about exemptions from f77 programs; f95 enhancements are still working fine.

+4
source share
1 answer

You can set a fixed format using

 gfortran -ffixed-form -ffixed-line-length-none [sourcefiles] 

And it really can make a difference (I have a program here where it changes the output!).

I'm sure there are options that disable at least most of the f95 features.

-1
source

Source: https://habr.com/ru/post/1485229/


All Articles