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/55069] TRIM incorrectly optimized out for assignment to allocatable strings (deferred length)


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.


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