From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23456 invoked by alias); 20 Jul 2013 20:29:34 -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 Received: (qmail 21121 invoked by uid 48); 20 Jul 2013 20:27:33 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/50536] an input item shall not appear as the do-variable of any io-implied-do Date: Sat, 20 Jul 2013 20:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: accepts-invalid, diagnostic, patch 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00922.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50536 --- Comment #6 from Tobias Burnus --- (In reply to Tobias Burnus from comment #5) > + gfc_error ("In a READ statement, the input item at %L shall not " > + "be the do-variable of any io-implied-do"); Requires for %L: &new_code->where. And it is insufficient as it does not take care of, e.g. (foo%a(foo%i), foo%i = 1,5) which is odd but valid.