This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, Fortran] PR fortran/60289 First try on: Fixing character array allocation for class(*) type variable
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, mikael dot morin at sfr dot fr, vehre at gmx dot de
- Date: Sun, 17 Aug 2014 14:46:53 +0200
- Subject: Re: [PATCH, Fortran] PR fortran/60289 First try on: Fixing character array allocation for class(*) type variable
- Authentication-results: sourceware.org; auth=none
> My knowledge of unlimited polymorphic types is limited, but I think that
> this is not correct.
My knowledge of unlimited polymorphic types is even more limited,
then I cannot comment about the correctness of the patch. However
> The new length of the string has to be stored somewhere. If you don't
> do that, for example the intrinsic len() function won't work.
if I add a line
if (len(P) /= 20) call abort()
in the 'type is (character(*))' block, the test still succeeds.
Dominique