(j3.2006) (SC22WG5.4075) Some minor points on the Draft Final CD

Reinhold Bader Reinhold.Bader
Wed Sep 9 06:59:11 EDT 2009


Hello,

N.M. Maclaren schrieb:

> 
> 1) I thought that we had discussed this, but now can't find any wording
> that forbids it, nor what it means if it is allowed:
> 
>    ! running on either 10 (too few) or 27 (not a multiple) images
>    INTEGER, SAVE :: coarray(10)[5,5,*]
>    ! and similarly for ALLOCATE
> 
> Unless I have missed something, this needs a new paragraph in 5.3.6.3
> (Explicit-shape coarray), such as:
> 
>    The product of (upper-cobound - lower-cobound + 1) for all
>    codimensions except the last shall be a factor of the number of
>    images.

If I recall correctly, the declaration in itself is not a problem. Clause 6.6
even has a note on this, and appropriate restrictions on using entities
such as those declared above.

> 
> and in 6.7.1.1 (ALLOCATE statement: Syntax):
> 
>    The product of (upper-cobound-expr - lower-cobound-expr + 1) for
>    all codimensions except the last shall be a factor of the number of
>    images.
> 
> If not, there needs to be something (even just a NOTE) clarifying what
> happens in these cases.
> 
> 
> 
[...]

Regards
Reinhold



More information about the J3 mailing list