(j3.2006) Are functions in intrinsic modules "intrinsic"?
Tue Nov 17 08:54:57 EST 2015
Thanks to Malcolm for pointing out the assumed-size problem.
On Nov 16, 2015, at 10:25 PM, Damian Rouson <damian at sourceryinstitute.org> wrote:
> OpenCoarrays uses C_SIZE_OF(assumed-rank-dummy) and I recently had to add a C-preprocessor directive to work around the lack of the feature in compilers other than GCC. See line 473 at https://github.com/sourceryinstitute/opencoarrays/blob/master/src/extensions/opencoarrays.F90, which reads
> #if defined(COMPILER_LACKS_C_SIZEOF_ASSUMED_RANK)
The prohibition of assumed-rank arguments to C_SIZEOF is part of a Constraint, so compilers are required to produce a diagnostic for violations. We usually issue ERROR level messages for constraint violations, although I suppose WARNING would satisfy the requirements of the standard. Does gfortran produce a message? How does GCC handle the assumed-size problem?
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