(j3.2006) (SC22WG5.5801) [ukfortran] Straw ballot on four small technical changes

Bill Long longb
Fri Oct 28 17:01:00 EDT 2016


On Oct 28, 2016, at 2:39 PM, N.M. Maclaren <nmm1 at cam.ac.uk> wrote:

> 
> 06-277r1
> 
> C_SIZEOF is not permitted for an assumed-size array [486:24 18.2.3.7p3],
> but we permit assumed-size arrays to be actual arguments corresponding
> to assumed-rank dummies.  This inconsistency needs resolving.


Interesting point, but an issue we seem to already have with SIZE( ).  We allow SIZE(ARRAY) where ARRAY is assumed-rank, yet the description of SIZE prohibits an assumed-size ARRAY in SIZE(ARRAY). 

>  One
> change would be:
> 
>    [486:24] 18.2.3.7p3 delete "that is not an assumed-size array".
> 
>    [486:31] 18.2.3.7p6 append "if the argument is an assumed-size
>    array or is an assumed-rank object that corresponds to an
>    assumed-size actual argument, the value returned is -1.?

This would be change from the existing standard for C_SIZEOF( ) where the argument is assumed-size.  I think a better approach would be to restrict assumed-rank dummy arguments to not be associated with an assumed-size object in the ARRAY argument descriptions for both SIZE and C_SIZEOF. 

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