http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47023

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-29 
13:17:46 UTC ---
"Argument. X shall be an interoperable data entity that is not an assumed-size
array."

It might be sufficient to test -- besides the obvious stuff (cf. SIZEOF) --
just for derived types that those are BIND(C).

 * * *

By the way, I think one should reject proc-pointers for both SIZEOF and
C_SIZEOF. For C_SIZEOF because they are not interoperable (only type(c_funptr)
is) and for SIZEOF as the pointee size and not the pointer size is returned,
which does not make sense for functions. (gfortran currently returns 1 byte.)

Reply via email to