[Bug fortran/51055] deferred length character allocation: allocate(character(len=i)::s) rejected

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 11 14:39:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51055

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-05-11 14:31:26 UTC ---
See http://gcc.gnu.org/ml/fortran/2012-05/msg00054.html


The problem is that the character length is used for reallocation before it is
set.

The following should work. The only question is whether it causes problems by
enabling not only REPEAT but all other functions.

Well, seemingly also other functions are affected. The following code has the
same problem.

The bug is also mentioned in:
 PR 49110
 PR 45170 comment 14 (mentioned there and in some other comments, but not the
bug)



More information about the Gcc-bugs mailing list