[J3] Question to "The CFI_section function"
Tobias Burnus
burnus at net-b.de
Tue Nov 12 09:39:03 EST 2019
Seems as if all (well, you and Bob) agree on what should be the output
(which also matches gfortran's implementation). – Can this a bit clearer
spelt out in the next version of the standard?
Even with the first paragraph, mentioned by Bob,
"Successful execution of CFI_section updates the base_addr and dim
members of the C descriptor with the address result to describe the
array section determined by source, lower_bounds, upper_bounds, and
strides, as follows."
I still do not see why this demands that the lower bounds (of 'source'
or, if not-NULL, of 'lower_bounds') is not only used to establish the
array section (and extent) but also the value of lower_bounds of 'result'.
Thanks,
Tobias
On 11/12/19 3:30 PM, Bill Long via J3 wrote:
> The lower_bounds argument to CFI_section is input (const). What you provide become the lower bounds. If the argument is not provided (NULL pointer), then the lower bounds are taken from the SOURCE argument.
>
> Cheers,
> Bill
>
>> On Nov 12, 2019, at 6:06 AM, Tobias Burnus via J3 <j3 at mailman.j3-fortran.org> wrote:
>>
>> Hi all,
>>
>> what's the expected 'lower_bound's of the array descriptor 'result' after a call to "18.5.5.7 The CFI_section function"? My feeling is that 0 is intended but I cannot find it in the spec.
>>
>> Is it missing or am I just looking at the wrong part of the standard?
>>
>> Cheers,
>>
>> Tobias
>>
> Bill Long longb at cray.com
> Principal Engineer, Fortran Technical Support & voice: 651-605-9024
> Bioinformatics Software Development fax: 651-605-9143
> Cray, a Hewlett Packard Enterprise company/ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
>
>
>
More information about the J3
mailing list