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

Steve Kargl <kargl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #3 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #1)
> This regression (if it is one) should have been introduced between Nov 16
> and now.

F202y, page 327.

If a dummy argument has INTENT(OUT) or INTENT(INOUT), the actual argument
shall be definable.

8.5.10 INTENT attribute
...
The INTENT (IN) attribute for a nonpointer dummy argument specifies that it
shall neither be defined nor become undefined during the invocation and
execution of the procedure. The INTENT (IN) attribute for a
...
page 115
4 The INTENT (INOUT) attribute for a nonpointer dummy argument specifies
that any actual argument that corresponds to the dummy argument shall be
definable.


AFAICT, there is no requirement that the Fortran compiler needs
to check if the dummy becomes defined or not.  I think gfortran
is correct here; but, as always, I could be wrong.

Reply via email to