[Bug fortran/95631] Unable to redefine a literal with `-std=legacy'

kargl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 11 04:50:25 GMT 2020


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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |kargl at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from kargl at gcc dot gnu.org ---
I think Eric Korpela may not know the Fortran standards.  Yes,
old compiler did dumb things, because it was/is difficult to
detect this violation of the Fortran standards.  Note, these
prohibitions are on the programmer.

F66 8.4.2

If an actual argument corresponds to a dummy argument that is
defined or redefined in the referenced subprogram, the actual
argument must be a variable name, an array element name, or an
array name.

F77 15.9.2

Actual arguments may be constants, symbolic names of constants,
function references, expressions involving operators, and
expressions enclosed in parentheses if and only if the associated
dummy argument is a variable that is not defined during execution
of the referenced external procedure.


More information about the Gcc-bugs mailing list