http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51550
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-12-14 10:26:05 UTC --- I think it is a duplicate of pr47545, pr48654, pr49050, pr51075, and pr51393 (note that only pr48654 is marked as a duplicate of pr47545; if there is an agreement about it, I can mark the other PRs as duplicate). From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49050#c2 : 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