(j3.2006) is sequence association allowed for coarray dummy

Bill Long longb
Wed Sep 29 16:49:00 EDT 2010



Aleksandar Donev wrote:
> On 09/29/10 15:43, Bill Long wrote:
>>    real y(:)[*]
>>    call sub(y(10)) 
> Bill, this is not even allowed without the coarray, that is, one can 
> only use sequence association in cases where copy in/out can be 
> established at compile time not to happen. Passing an element of an 
> assumed shape array does not work: "...the corresponding dummy argument 
> shall be scalar unless the actual argument is ... an element or 
> substring of an element of an array that is not an assumed-shape, 
> pointer, or polymorphic array."
> 

I thought that should be the case, but read through the sequence 
association section multiple times looking for these words without luck. 
  I finally found them elsewhere.   Interestingly, that same paragraph 
seems to allow what Jim wants.   So, we may have an internal 
inconsistency.  From an implementation point if view, I don't see a 
problem with allowing this.

Cheers,
Bill


> I think Jim has a valid point here.
> Aleks
> 

-- 
Bill Long                                           longb at cray.com
Fortran Technical Support    &                 voice: 651-605-9024
Bioinformatics Software Development            fax:   651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101





More information about the J3 mailing list