[Bug fortran/52117] allocated arrays give incorrect results when used with RESHAPE in gcc v4.6.2
sphirshman at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 6 15:38:00 GMT 2012
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 ***
More information about the Gcc-bugs
mailing list