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



Tobias Burnus <burnus at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |burnus at gcc dot gnu.org,

                   |                            |tkoenig at gcc dot gnu.org

            Summary|[4.7/4.8 Regression] TRIM   |TRIM incorrectly optimized

                   |incorrectly optimized out   |out for assignment to

                   |for assignment to           |allocatable strings

                   |allocatable string          |(deferred length)



--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-10-25 
11:07:42 UTC ---

Seems to be fixed for GCC 4.8 (since 2012-06-16) but it is present in 4.7/4.6.

See bug reports fortran/53642 and PR fortran/45170.



One could consider backporting the bug fix to 4.7 (and 4.6), even though the

bug is no regression (i.e. it never worked). On the other hand, 4.8 fixed

several additional issues with allocatable string lengths, hence, you could

consider to update to 4.8. (Which is the current developer version, but usually

rather stable. See http://gcc.gnu.org/wiki/GFortranBinaries)



(I removed the "4.7/4.8 regression" from the summary, given that is no

regression and that it works with 4.8 since June.)

Reply via email to