This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] F2008: TARGET actual to POINTER dummy with INTENT(IN)
- From: Daniel Kraft <d at domob dot eu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 15 Aug 2010 17:15:35 +0200
- Subject: Re: [Patch, Fortran] F2008: TARGET actual to POINTER dummy with INTENT(IN)
- References: <4C68017B.8070407@net-b.de>
Tobias Burnus wrote:
Low-hanging but useful Fortran 2008 feature. F2008 allows passing a
TARGET to a POINTER dummy which has INTENT(IN).
F2008, 12.5.2.7 Pointer dummy variables:
"If the dummy argument does not have the INTENT (IN), the actual
argument shall be a pointer. Otherwise, the actual argument shall be a
pointer or a valid target for the dummy pointer in a pointer assignment
statement."
Build and regtested on x86-64-linux. OK for the trunk?
Ok.
Daniel
--
http://www.pro-vegan.info/
--
Done: Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri