I have a Fortran90 code that compiles and works great with gfortran 4.8.5. However, when I try to compile it with newer gfortran versions (I've tested from 6.3 to 11.2), it does not work!!
If I don't add any flags to gfortran-6.3+, I get Error: Blank required in STOP statement near (1).
If I add -std=f95, then I get Error: GNU Extension: Nonstandard type declaration or Error: Fortran 2003: Elemental function as initialization expression with non-integer/non-character arguments...
Any tips? Thanks!