https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90352

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Hi Paul,

> I am sure that the array part is OK. Otherwise, why have a type code for
> strings?

It 

 18.5  The source file ISO_Fortran_binding.h
18.5.1 Summary of contents

 The source file ISO_Fortran_binding.h shall contain the C structure
definitions, typedef declarations, macro
definitions, and function prototypes specified in 18.5.2 to 18.5.5. The
definitions and declarations in ISO_-
Fortran_binding.h can be used by a C function to interpret and manipulate a C
descriptor. These provide a
means to specify a C prototype that interoperates with a Fortran interface that
has a non-interoperable dummy
variable (18.3.6).

And the length of the character should be passed as element_len in
the various CFI_* functions.

> I guess scalars can be handled by passing to an assumed rank array.

An array of character*1 is interoperable, yes.

Regards

Thomas

Reply via email to