This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/84495] Incorrect result for concatenation of Fortran allocatable string
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Feb 2018 23:34:12 +0000
- Subject: [Bug fortran/84495] Incorrect result for concatenation of Fortran allocatable string
- Auto-submitted: auto-generated
- References: <bug-84495-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84495
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-20
CC| |kargl at gcc dot gnu.org
Known to work| |8.0
Ever confirmed|0 |1
Known to fail| |6.4.1, 7.3.1
--- Comment #1 from kargl at gcc dot gnu.org ---
David,
This appears to be fixed on trunk, and broken on the
6 and 7 branches. I don't have older versions lying
around to test.
gfcx -o z a.f90 && ./z
123456789
123A6789
troutmask:sgk[205] gfc7 -o z a.f90 && ./z
123456789
123A678
troutmask:sgk[206] gfc6 -o z a.f90 && ./z
123456789
123A678
I'm not sure if a back port of the patch (if one can even
be identified) can be applied to branches due to changes
in how strings are handled.
I'll mark this as NEW and hopefully others can chime in.