[Bug fortran/56867] Missing temporary with string array assignment

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Apr 8 12:17:00 GMT 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-08 12:17:16 UTC ---
gfortran seems to be in good company. I get
  23cd
  2334
  33yz   <<<
using gfortran 4.1, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9. But also using NAG,
pathf95 and pgf95.

While g95, sunf95, crayftn and ifort have the correct result:
  23cd
  2334
  23yz   <<<

The issue (or at least the fix) could be related to PR47674, where also no
temporary is generated for a substring. (That code could be handled without
temporary, but using a temporary is probably the simplest. In any case, alias
analysis fails as well.)



More information about the Gcc-bugs mailing list