From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1207 invoked by alias); 25 Sep 2010 14:31:03 -0000 Received: (qmail 1194 invoked by uid 22791); 25 Sep 2010 14:31:02 -0000 X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KAM_STOCKTIP,MISSING_MID 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; Sat, 25 Sep 2010 14:30:57 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/45777] Missing temporary ? X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 25 Sep 2010 16:46:00 -0000 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: 2010-09/txt/msg02777.txt.bz2 Message-ID: <20100925164600.d7y5n6hl0632e5OA7tmkORO-uIm9h_d0cQskkTkjNVc@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45777 --- Comment #5 from Tobias Burnus 2010-09-25 14:30:55 UTC --- The issue seems to be how alias checking is implemented in trans-array.c: gfc_could_be_alias (gfc_ss * lss, gfc_ss * rss) [...] for (rref = rss->expr->ref; rref != rss->data.info.ref; rref = rref->next) { if (gfc_symbols_could_alias (rref->u.c.sym, lsym)) return 1; } While "rss->expr->symtree->n.sym" (= "rsym") has the pointer and target attribute, the element "rref->u.c.sym" usually has not. Thus, the gfc_symbols_could_alias check succeeds (first argument is neither a pointer nor a target thus it cannot alias with the second argument, unless both symbol are the same); cf. symbol.c's gfc_symbols_could_alias (gfc_symbol *lsym, gfc_symbol *rsym) [...] if (lsym->attr.pointer && (rsym->attr.pointer || rsym->attr.allocatable || rsym->attr.target)) return 1; if (lsym->attr.target && rsym->attr.pointer) return 1; if (lsym->attr.allocatable && rsym->attr.pointer) return 1; [...] return 0; -- Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.