Reputation: 507
For educational purposes, I have written some Fortran 90 code that I compile with gfortran. Is there any way I can make sure that the code will not compile if I use any features not supported by Fortran 90? For example, the class
keyword introduced in Fortran 2003, elemental
from Fortran 95, etc.
I am not so familiar with gfortran, but after some searching, I can't seem to find an answer online (I am googling along the lines of "gfortran compile only fortran 90". Maybe I don't know how to phrase my query correctly). Many thanks!
Upvotes: 0
Views: 96