[Bug fortran/55069] TRIM incorrectly optimized out for assignment to allocatable strings (deferred length)
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Oct 25 11:21:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55069
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-10-25 11:20:59 UTC ---
Actually, when I try the code with 4.7 and -O0, I get
>< ! Should be ">a<"
>< ! Should be ">a<"
>ba<
>ab<
after adding a few:
print '(3a)','>',str,'<'
Besides the wrong output, also valgrind complains. That shows that there are
more issues with 4.7. (With 4.8 one gets the expected output with -O0 and -O2
and valgrind finds no issues.) Thus, I think WONTFIX is probably the most
reasonable choice. See PR45170 for remaining issues and - in the comments and
in the list of blocking bugs - also for the fixes (esp. for those after 4.7 was
branched off on 2012-03-02). Note that GCC 4.8 will enter the stabilization
phase soon, the release can be expected around March/April 2013 - but as said,
the trunk / nightly builds are nearly always working fine.
I closed this now as WONTFIX, if any of you thinks that it makes sense to
backport one of the fixes, feel free to reopen.
More information about the Gcc-bugs
mailing list