This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55638] Wrongly accepts INTENT + VALUE - and wrongly requires it for PURE
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Dec 2012 16:56:59 +0000
- Subject: [Bug fortran/55638] Wrongly accepts INTENT + VALUE - and wrongly requires it for PURE
- Auto-submitted: auto-generated
- References: <bug-55638-4@http.gcc.gnu.org/bugzilla/>
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