This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51055] deferred length character allocation: allocate(character(len=i)::s) rejected
- 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: Fri, 11 May 2012 14:31:26 +0000
- Subject: [Bug fortran/51055] deferred length character allocation: allocate(character(len=i)::s) rejected
- Auto-submitted: auto-generated
- References: <bug-51055-4@http.gcc.gnu.org/bugzilla/>
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)