c_sizeof,

Janus Weil janus@gcc.gnu.org
Sun Sep 22 11:35:00 GMT 2013


Hi Vladimir,

>   I am not sure, is this program standard conforming?

looks valid to me and is indeed accepted by current trunk builds of gfortran.

Cheers,
Janus



> It is not
> accepted by gfortran 4.8 with
>
> Error: 'x' argument of 'c_sizeof' intrinsic at (1) must be an
> interoperable data entity
>
>
>      Vladimir
>
> use iso_c_binding
>
> print *, c_sizeof( real(1., c_float) )
> end



More information about the Fortran mailing list