From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20623 invoked by alias); 6 Feb 2012 15:38:32 -0000 Received: (qmail 20432 invoked by uid 22791); 6 Feb 2012 15:38:30 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Feb 2012 15:37:43 +0000 From: "sphirshman at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52117] allocated arrays give incorrect results when used with RESHAPE in gcc v4.6.2 Date: Mon, 06 Feb 2012 15:38: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: X-Bugzilla-Severity: critical X-Bugzilla-Who: sphirshman at yahoo dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-02/txt/msg00614.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52117 --- Comment #2 from steven hirshman 2012-02-0= 6 15:37:35 UTC --- Thank you for the information. THe work-around works with the newer (4.6.2) compiler, but is unrecognized by older versions of gcc that are in use on -= for example - NERSC computers. Is there a FIX other than the workaround planned, that will be backwards compatible with older compilers? Also, the B(:) fails on some platforms, I'm told by some of my co-workers. ________________________________ From: burnus at gcc dot gnu.org To: sphirshman@yahoo.com=20 Sent: Friday, February 3, 2012 3:41 PM Subject: [Bug fortran/52117] allocated arrays give incorrect results when u= sed with RESHAPE in gcc v4.6.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52117 Tobias Burnus changed: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 What=C2=A0 =C2=A0 |Removed=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |Added ---------------------------------------------------------------------------- =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Status|UNCONFIRMED=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |RESOLVED =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 CC|=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 |burnus at gcc dot gnu.org =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Resolution|=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 |DUPLICATE --- Comment #1 from Tobias Burnus 2012-02-03 20:41:32 UTC --- Work around: -fno-realloc-lhs Or add "(:)" =C2=A0 B(:) =3D RESHAPE(A, SHAPE(B)) Solution: Update - it has just been fixed in the last days. Thanks for the report! *** This bug has been marked as a duplicate of bug 52012 ***