This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52117] allocated arrays give incorrect results when used with RESHAPE in gcc v4.6.2
- From: "sphirshman at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 15:37:35 +0000
- Subject: [Bug fortran/52117] allocated arrays give incorrect results when used with RESHAPE in gcc v4.6.2
- Auto-submitted: auto-generated
- References: <bug-52117-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52117
--- Comment #2 from steven hirshman <sphirshman at yahoo dot com> 2012-02-06 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 <gcc-bugzilla@gcc.gnu.org>
To: sphirshman@yahoo.com
Sent: Friday, February 3, 2012 3:41 PM
Subject: [Bug fortran/52117] allocated arrays give incorrect results when used
with RESHAPE in gcc v4.6.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52117
Tobias Burnus <burnus at gcc dot gnu.org> changed:
     What  |Removed          |Added
----------------------------------------------------------------------------
      Status|UNCONFIRMED        |RESOLVED
        CC|              |burnus at gcc dot gnu.org
ÂÂÂÂÂÂÂ Resolution|Â Â Â Â Â Â Â Â Â Â Â Â Â Â |DUPLICATE
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-02-03
20:41:32 UTC ---
Work around: -fno-realloc-lhs
Or add "(:)"
 B(:) = 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 ***