This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51976] [F2003] Support deferred-length character components of derived types (allocatable string length)
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Nov 2012 15:00:05 +0000
- Subject: [Bug fortran/51976] [F2003] Support deferred-length character components of derived types (allocatable string length)
- Auto-submitted: auto-generated
- References: <bug-51976-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51976
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-11-08 15:00:05 UTC ---
Note that after this feature works, we have to ensure that FORALL with a
generated temporary works with different string lengths:
type t
character(len=:), pointer :: str
end type t
type(t), pointer :: strarry(:), strarray2
allocate(strarray(3), strarray2)
allocate(character(len=5) :: strarray(1)%str, strarray2(1)%str)
allocate(character(len=7) :: strarray(2)%str, strarray2(2)%str)
allocate(character(len=2) :: strarray(2)%str, strarray2(3)%str)
forall(i=1:3) strarray2(i)%str = strarray(i)%str