(j3.2006) (SC22WG5.5809) Straw ballot on four small technical changes
Bill Long
longb
Fri Nov 11 08:47:31 EST 2016
On Nov 11, 2016, at 3:34 AM, John Reid <John.Reid at stfc.ac.uk> wrote:
>
> In relation to Nick Maclaren's vote, the size of an assumed-size array
> is specified in 8.5.8.5 of J3/16-007r2.
>
I?m afraid that does not resolve the issue Nick raised. In 9.5.2 we say "An assumed-size array (8.5.8.5) is permitted to appear as a whole array in an executable construct or specification expression only as an actual argument in a procedure reference that does not require the shape.? This is mainly because, even though we define a size in the standard, that information is not normally available to a subprogram with an assumed-size dummy argument. That is why the SIZE intrinsic has restrictions on assumed-size array arguments, and the existing C_SIZEOF function prohibits assumed-size arguments. That limitation for C_SIZEOF() needs to be preserved for the case of an assumed-rank argument that is argument associated with an assumed-size array. By allowing assumed-rank arguments to SIZE, we need a similar limitation there as well. A note about this is on my list of issues that need papers at m212. Thanks to Nick for exposing this oversight.
Cheers,
Bill
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101
More information about the J3
mailing list