http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49050
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-18 18:29:49 UTC --- See also: PR 45170. It is known that deferred character length components do not work - they have not been implemented. I think we really should add a gfc_error("Sorry not implemented") as it is not the first such bug has been reported. * * * By the way, the documentation states this - albeit a bit hidden: http://gcc.gnu.org/gcc-4.6/changes.html#fortran http://gcc.gnu.org/wiki/GFortran#GCC4.6 "Deferred type parameter: For scalar allocatable and pointer variables the character length can be deferred." (In particular: For components and for arrays, the length cannot be deferred.) And a bit more explicitly: http://gcc.gnu.org/wiki/Fortran2003Status http://gcc.gnu.org/onlinedocs/gfortran/Fortran-2003-status.html