From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17463 invoked by alias); 8 Apr 2013 12:17:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 17420 invoked by uid 48); 8 Apr 2013 12:17:17 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56867] Missing temporary with string array assignment Date: Mon, 08 Apr 2013 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00627.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56867 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #5 from Tobias Burnus 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.)