[Bug fortran/48955] [4.6/4.7 Regression] Wrong result for array assignment due to missing temporary
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 11 19:28:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48955
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-05-11 19:00:06 UTC ---
Hmm... I wonder if this does the trick? It fixes the test case,
and passes all regression tests... Paul, what do you think?
Index: dependency.c
===================================================================
--- dependency.c (Revision 173389)
+++ dependency.c (Arbeitskopie)
@@ -1822,7 +1822,6 @@ gfc_dep_resolver (gfc_ref *lref, gfc_ref *rref, gf
/* Inhibit loop reversal if dependence not compatible. */
if (reverse && reverse[n] != GFC_REVERSE_NOT_SET
&& this_dep != GFC_DEP_EQUAL
- && this_dep != GFC_DEP_BACKWARD
&& this_dep != GFC_DEP_NODEP)
{
reverse[n] = GFC_CANNOT_REVERSE;
More information about the Gcc-bugs
mailing list