This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] Add diagnostic / check for passing coarrays to allocatable dummies


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]