From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16721 invoked by alias); 24 Oct 2007 10:00:41 -0000 Received: (qmail 16600 invoked by uid 48); 24 Oct 2007 10:00:19 -0000 Date: Wed, 24 Oct 2007 10:00:00 -0000 Message-ID: <20071024100019.16599.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33686] FORALL loop gives wrong result In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault at gcc dot gnu dot org" 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: 2007-10/txt/msg02133.txt.bz2 ------- Comment #12 from pault at gcc dot gnu dot org 2007-10-24 10:00 ------- I have prototype fix for this which works OK and does not break anything. It copies 'p' to a temporary before the FORALL and uses the temporary for the references. This method will also cure the problem with character substring dependences but I have not tested it yet. This fix will not be very efficient in cases where the FORALL only visits a small subsection of the 'value' variable but I can see no straightforward of handling the generality of dependences in the 'value' references. Watch this space - a "one size fits all" patch for the FORALL and assignment woes is on its way. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2007-10-08 12:15:58 |2007-10-24 10:00:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33686