https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36383
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Comment from Richard Maine: > There were a bunch of restrictions like this that were removed with one > of the Fortran revisions. I think it was between f95 and f2003. So in > some sense, both compilers are right. You might want to look at the > particular compiler options for controlling the version of the standard > that messages are produced for; some compilers have multiple options > there. > > It is my opinion that these restrictions were misguided in the first > place. They achieved nothing useful and disallowed otherwise reasonable > coding practices. I think that a majority of J3 eventually came to agree > with that. AT any case, they did agree with removing the restrictions in > f2003. Am I correct to understand that an error should be emitted with -std=f95, but not with -std=f2*? If yes, would it be a majore offense to keep the present gfortran behavior? Is there a way to document it?