This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55069] TRIM incorrectly optimized out for assignment to allocatable strings (deferred length)
- 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: Thu, 25 Oct 2012 18:21:55 +0000
- Subject: [Bug fortran/55069] TRIM incorrectly optimized out for assignment to allocatable strings (deferred length)
- Auto-submitted: auto-generated
- References: <bug-55069-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55069
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-10-25 18:21:55 UTC ---
(In reply to comment #3)
> As for updating compilers, unfortunately this is not really a decision I can
> make. My group is required to maintain this software for on several specific
> machines (not under our direct control) that can go >1 year between major
> compiler updates.
I know the problem but the chance that a patch to 4.7.3 or 4.6.4 would only
help when you GCC vendor also includes such updates. And especially for
deferred-length, there are several issues which have been fixed.
> My current workaround is ...
I have a better work around:
str = ( trim(blah) )
Note the extra "( )" around the expression.