(j3.2006) a question on cobounds
Bill Long
longb
Mon Jul 27 12:10:00 EDT 2009
Jim Xia wrote:
>
> For the following declarations
>
> subroutine foo (n)
> integer, intent(in) :: n
> integer W(n)[*] !<-- we made it clear
> this is not allowed
Right. Automatic coarrays are not allowed.
> * integer, save :: U(10)[N,*] !<-- but do we intend to allow
> this? I have difficulties in finding constraints/rules that forbid this*
>
This is allowed. The array U has the same size on all images, and the
size is known at compile time. The [N,*] only affects how the image
numbers are computed in references within the subroutine. This case is
discussed at [92:24-26].
Cheers,
Bill
>
>
> Jim Xia
>
> XL Fortran Compiler Test
> IBM Toronto Lab at 8200 Warden Ave, Markham, On, L6G 1C7
> Phone (905) 413-3444 Tie-line 313-3444
> email: jimxia at ca.ibm.com
> D2/YF7/8200 /MKM
>
> http://www.ibm.com/software/awdtools/fortran/xlfortran
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> J3 mailing list
> J3 at j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3
--
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120
More information about the J3
mailing list