https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93263

--- Comment #9 from markeggleston at gcc dot gnu.org ---
(In reply to Tobias Burnus from comment #7)
> (In reply to Tobias Burnus from comment #5)
> > Side remark: The Fortran 2018 introduction states:
> > 
> > "the RECURSIVE keyword is advisory only. The NON_RECURSIVE keyword specifies
> > that a procedure is not recursive."
> 
> That's a Fortran 2018 change, see also PR 91413 …
> 
> I am not quite sure what implications this have for -fno-automatic
> -frecursive etc. As those are vendor extensions, it probably just means that
> one just needs to update the documentation.

So for Fortran 2018 the default for a procedure should be recursive and prior
to Fortran 2018 it should should not.

The default standard is GNU which includes everything up Fortran 2018 plus
extensions. When this is used I expect that no thought has been made regarding
the standard so simply implementing the above would break existing programs.

Should this issue be postponed to the stage 1?

Reply via email to