[Bug fortran/55638] Wrongly accepts INTENT + VALUE - and wrongly requires it for PURE

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 14 16:57:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55638

Tobias Burnus <burnus at gcc dot gnu.org> changed:

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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-12-14 16:56:59 UTC ---
Fortran 2008 Corr 1 has the following wording; otherwise, the intent would be
needed for IMPURE ELEMENTAL:

"C1290a The specification-part of an elemental subprogram shall specify the
intents of all of its dummy arguments that do not have the VALUE attribut"


As C558 implies, VALUE, INTENT(IN) is okay; the value+intent check works
correctly (cf. symbol.c). Sorry for claiming otherwise.

Patch: http://gcc.gnu.org/ml/fortran/2012-12/msg00082.html



More information about the Gcc-bugs mailing list