This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/84495] Incorrect result for concatenation of Fortran allocatable string


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]