On 12/25/2020 10:23 AM, Ev. Drikos wrote:
>
> Is this dummy argument 'x' in function 'st' ok?
>
> class(t) :: x[:,:]
>
> Or I should see a message like:
>
> error: Coarray variable 'x' at (^) shall not have codimensions with
> deferred shape
> subroutine st(x)
The error message is correct. What you're trying to do is
"assumed-shape", which does not exist for coarrays. ifort's message is:
error #8357: A coarray that does not have the ALLOCATABLE attribute
shall have a coarray-spec that is an explicit coshape-spec. [X]
subroutine st(x)
--------------^
You can find the text of the F2018 standard at
https://j3-fortran.org/doc/year/18/18-007r1.pdf
--
Steve Lionel
ISO/IEC JTC1/SC22/WG5 (Fortran) Convenor
Retired Intel Fortran developer/support
Email: firstname at firstnamelastname dot com
Twitter: @DoctorFortran
LinkedIn:
https://www.linkedin.com/in/stevelionel
Blog:
https://stevelionel.com/drfortran
WG5:
https://wg5-fortran.org