This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51550] ICE in gfc_get_derived_type, at fortran/trans-types.c:2401
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Dec 2011 10:26:05 +0000
- Subject: [Bug fortran/51550] ICE in gfc_get_derived_type, at fortran/trans-types.c:2401
- Auto-submitted: auto-generated
- References: <bug-51550-4@http.gcc.gnu.org/bugzilla/>
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