[Patch, Fortran] Add diagnostic / check for passing coarrays to allocatable dummies
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun May 29 20:02:00 GMT 2011
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
More information about the Gcc-patches
mailing list