While I still have problems to decipher the standard, regarding
CFI_establish, Steve L wrote:
"In the C descriptor world, arrays start at zero as they do in C. The
only way they can become non-zero is through argument association,
allocation or pointer association as specified in 18.5.3p3. For
non-pointer, not-allocatable objects (this means "other"), the lower
bounds are supposed to be always zero."
Hence, I now also set it for CFI_attribute_other to 0 – and check it in
a test case (most users there have NULL as base_addr, hence, only a
single assert is in that file).
Build on x86-64_gnu-linux.
OK for the trunk and GCC-9?
On 11/14/19 1:31 AM, Jakub Jelinek wrote:
> This broke on hosts where the system compiler doesn't have
> ISO_Fortran_binding.h header installed (e.g. GCC 8 and earlier).
Aha, that's the reason.
> Fixed thusly, tested on x86_64-linux, committed to trunk as obvious.
> 2019-11-14 Jakub Jelinek <[hidden email]>
> * gfortran.dg/ISO_Fortran_binding_17.c: Include
> ../../../libgfortran/ISO_Fortran_binding.h rather than
Thanks, Jakub, for the fix and sorry all for the breakage. I try to
remember in order to not do repeat this mistake :-/