https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Keywords|needs-stdcheck |rejects-valid --- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- I think the code is valid. A named scalar Fortran variable is interoperable if and only if its type and type parameters are interoperable, check it is not a coarray, check it has neither the ALLOCATABLE nor the POINTER attribute check and if it is of type character its length is not assumed or declared by an expression that is not a constant expression The length of character(kind=c_char, len=*), parameter :: blergh = 'abc' is three, the * in "len=*" is a type paremater.