(j3.2006) CO_BROADCAST vs. CO_REDUCE

John Reid John.Reid
Wed Sep 17 05:55:49 EDT 2014



Tobias Burnus wrote:
> Dear all,
>
> looking at the current draft of the T18508, I wonder why CO_BROADCAST
> accepts polymorphic arguments while CO_REDUCE doesn't.
>
> I do not see a big difference between the two ? and implementation wise,
> a polymorphic argument also causes only little extra implementation
> work. By contrast, allocatable components (which can also be
> polymorphic) cause me much more grief. And those seem to be permitted
> for both.

Is it to allocatable coarray components that you object? For 
CO_BROADCAST, we used to require SOURCE to be a coarray (see N1996). It 
seems to me that we should not allow a type with a coarray component for 
either CO_BROADCAST or CO_REDUCE.

John.




More information about the J3 mailing list