[J3] Polymorphic dummy arrays
Bill Long
longb at cray.com
Mon Jan 7 18:31:40 EST 2019
> On Jan 7, 2019, at 5:24 PM, Vipul Parekh via J3 <j3 at mailman.j3-fortran.org> wrote:
>
> On Mon, Jan 7, 2019 at 6:19 PM Bill Long via J3
> <j3 at mailman.j3-fortran.org> wrote:
>>
>> The original example did not have any assumed-size arrays. However, in the case of the dummy being explicit-shape (dimension(1:2)) ..
>
> Bill,
>
> See R822 in 18-007r1:
> 10 R822 assumed-size-spec is explicit-shape-spec-list, assumed-implied-spec
>
> Does this not mean the explicit-shape specification in the original
> example is an assumed-size array dummy argument?
Nope. An assumed-size array dimension has to end with the assumed-implied-spec (i.e. the rightmost dimension is * or lower_bound:*). In the syntax rule above, the assumed-implied-spec is PART of the syntax, not an alternative to the explicit-shape-spec-list. For example, this is assumed-size:
dimension (10,30,*)
where the 10,30 is the explicit-shape-spec-list and the * is the assumed-implied-spec.
Cheers,
Bill
>
> Regards,
> Vipul
Bill Long longb at cray.com
Principal Engineer, Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9143
Cray Inc./ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
More information about the J3
mailing list