This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Add diagnostic / check for passing coarrays to allocatable dummies
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- 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, 29 May 2011 10:22:42 -0700
- Subject: Re: [Patch, Fortran] Add diagnostic / check for passing coarrays to allocatable dummies
- References: <4DE12CB7.2080601@net-b.de>
On Sat, May 28, 2011 at 07:11:19PM +0200, Tobias Burnus wrote:
> Allocatable coarrays have to be (de)allocated collectively. Thus, it is
> doubtful if one passes a coarray as actual argument to an allocatable
> dummy argument, which is not a coarray (unless the dummy is INTENT(IN)).
> However, as long as the allocation status is not modified, the code is
> valid.
>
> If the dummy is INTENT(OUT), we know that the allocation status is
> modified - thus, we know the code is invalid.
>
> OK for the trunk?
>
OK.
--
Steve