From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4FF7D3858039; Sat, 27 Feb 2021 08:53:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FF7D3858039 From: "zeccav at gmail dot com" 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, 27 Feb 2021 08:53:57 +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: zeccav at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2021 08:53:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50536 --- Comment #9 from Vittorio Zecca --- Still present in version 11. Detected by NAG nagfor and Intel ifort. [vitti f95]$nagfor -S -w gfbug74.f NAG Fortran Compiler Release 7.0(Yurakucho) Build 7042 Error: gfbug74.f, line 4: Input item L cannot also be an I/O implied DO variable [NAG Fortran Compiler error termination, 1 error] [vitti f95]$ifort -S -w gfbug74.f gfbug74.f(4): error #8251: An input item must not appear as the implied-DO variable of any implied-DO loop that contains the input item. [L] read *,(l,l=3D1,2)=20 --------------^ compilation aborted for gfbug74.f (code 1)=