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.